New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
Global Gaming Events
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default Dreamweaver, HTML CSS Question

    Alright, I want my left sidebar and header to be links, but I don't want them blue or underlined. I know I can go into page properties and change what the links do, but that will effect the main content as well.

    So, is this something I should change in CSS?

    This is how they read currently...

    .thrColElsHdr #header {
    background: #000000;
    padding: 0 10px;
    color: #FFFFFF;
    }

    .thrColElsHdr #sidebar1 {
    float: left;
    width: 11em;
    color: #FFFFFF;
    }


    I guess I need to know what I should add to the CSS so that the text remains as it is while allowing me to turn it into links.

    Thanks, Jonathan

  2. #2
    Brazilian Barbecue Master
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Brazil
    Posts
    299
    Feedback Score
    4 (100%)

    Default

    This should do it:

    #header a {
    background: #000000;
    padding: 0 10px;
    color: #FFFFFF;
    text-decoration:none;
    }

    Also, put border="0" on the images.
    Professional translation: English to Portuguese. Native-speakers with experience in gambling.
    Selling small sites, cheap: http://www.pokeraffiliatelistings.co...tes-cheap.html.

  3. #3
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default

    Quote Originally Posted by Marcelo View Post
    This should do it:

    #header a {
    background: #000000;
    padding: 0 10px;
    color: #FFFFFF;
    text-decoration:none;
    }

    Also, put border="0" on the images.
    Nope, still the same.

  4. #4
    My Baby Boy ↓
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Myth Drannor
    Posts
    977
    Blog Entries
    2
    Feedback Score
    38 (100%)

    Default

    Try adding these to the css. The first one will be the color of your non-sidebar links and the 2nd two will be for the links in your sidebar. I just picked some random colors and didn't factor in line-height or decoration or anything like that. I know there is a better way to do this though. I used to be able to do this with my eyes closed but I've been reusing the same templates and just altering the header images for so long I've lost my touch I guess.

    a{color:#000099;}
    .twoColElsLt #sidebar1 a{color:#006633;}
    .twoColElsLt #sidebar1 a:hover{color:#000;
    I have a proposal that'll save you plenty of time messing with templates, sending a pm now.
    Isn't this the sweetest thing in the world: Link - My little girl (S. Frost) is at the bottom, right of this school newsleter :-)
    --------
    Online Gambling Blog | Allin Poker bonus code | Kingdom of Poker (I know...kinda shady)

  5. #5
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default

    Quote Originally Posted by OPB View Post
    Try adding these to the css. The first one will be the color of your non-sidebar links and the 2nd two will be for the links in your sidebar. I just picked some random colors and didn't factor in line-height or decoration or anything like that. I know there is a better way to do this though. I used to be able to do this with my eyes closed but I've been reusing the same templates and just altering the header images for so long I've lost my touch I guess.



    I have a proposal that'll save you plenty of time messing with templates, sending a pm now.

    This did not work either, I tried editing your code to match what was up already and that also did not work. It changed everything green, but the links were still blue and underlined.

  6. #6
    My Baby Boy ↓
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Myth Drannor
    Posts
    977
    Blog Entries
    2
    Feedback Score
    38 (100%)

    Default

    Quote Originally Posted by jdwanchalk View Post
    This did not work either, I tried editing your code to match what was up already and that also did not work. It changed everything green, but the links were still blue and underlined.
    Is this what you are looking to do:

    Untitled Document

    The sidebar link colors can be controlled with:

    .thrColElsHdr #sidebar1 a{color:#006633; text-decoration:none;}
    .thrColElsHdr #sidebar2 a{color:#006633; text-decoration:none;}
    and the content links can be controlled with:

    a{color:#000099;}
    Isn't this the sweetest thing in the world: Link - My little girl (S. Frost) is at the bottom, right of this school newsleter :-)
    --------
    Online Gambling Blog | Allin Poker bonus code | Kingdom of Poker (I know...kinda shady)

  7. #7
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default

    Quote Originally Posted by OPB View Post
    Is this what you are looking to do:

    Untitled Document

    The sidebar link colors can be controlled with:



    and the content links can be controlled with:
    Where should I add the sidebar1 CSS? Within the sidebar 1 css?

  8. #8
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default

    Quote Originally Posted by OPB View Post
    Is this what you are looking to do:

    Untitled Document

    The sidebar link colors can be controlled with:



    and the content links can be controlled with:
    Here is what it looks like now...


    .thrColElsHdr #header {
    background: #000000;
    padding: 0 10px;
    color: #FFFFFF;
    }


    what SHOULD it look like?

  9. #9
    My Baby Boy ↓
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Myth Drannor
    Posts
    977
    Blog Entries
    2
    Feedback Score
    38 (100%)

    Default

    Quote Originally Posted by jdwanchalk View Post
    Where should I add the sidebar1 CSS? Within the sidebar 1 css?
    I just stuck them under the .thrColElsHdr #sidebar1 {

    /* Tips for sidebar1:
    1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
    2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
    3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColElsHdr #sidebar1 p" rule.
    */
    .thrColElsHdr #sidebar1 {
    float: left;
    width: 11em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 0; /* top and bottom padding create visual space within this div */
    }
    a{color:#000099;}
    .thrColElsHdr #sidebar1 a{color:#006633; text-decoration:none;}
    .thrColElsHdr #sidebar2 a{color:#006633; text-decoration:none;}

    .thrColElsHdr #sidebar2 {
    float: right;
    width: 11em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 0; /* top and bottom padding create visual space within this div */
    }
    .thrColElsHdr #sidebar1 h3, .thrColElsHdr #sidebar1 p, .thrColElsHdr #sidebar2 p, .thrColElsHdr #sidebar2 h3 {
    margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    margin-right: 10px;
    }
    Isn't this the sweetest thing in the world: Link - My little girl (S. Frost) is at the bottom, right of this school newsleter :-)
    --------
    Online Gambling Blog | Allin Poker bonus code | Kingdom of Poker (I know...kinda shady)

  10. #10
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default

    Quote Originally Posted by OPB View Post
    I just stuck them under the .thrColElsHdr #sidebar1 {
    Perfect, thank you, I was about to kill someone.


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Need Dreamweaver Template
    By jdwanchalk in forum Websites
    Replies: 0
    Last Post: 10-04-2009, 10:32 AM
  2. Using a HTML template for a big site help (noob question)
    By pokerworx in forum Wordpress - Web Design - Coding - Technical
    Replies: 3
    Last Post: 08-14-2009, 11:36 AM
  3. Html site Question
    By Ridge in forum Wordpress - Web Design - Coding - Technical
    Replies: 23
    Last Post: 04-27-2009, 01:48 PM
  4. Dreamweaver Question
    By KevinMcC in forum Wordpress - Web Design - Coding - Technical
    Replies: 4
    Last Post: 04-01-2009, 12:30 PM
  5. Free "dreamweaver"?
    By Pokerboy in forum Wordpress - Web Design - Coding - Technical
    Replies: 2
    Last Post: 02-12-2009, 05:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant