Simple CSS assistance

Discussion in 'CSS' started by JakeThePeg, Oct 26, 2009.

  1. #1
    Hi all!

    I'm just trying to polish off a really basic site I am creating as an experiment. One Million Hit Wonder .com is the URL.

    I'm trying to achieve the following with CSS:

    1. Make the really big link in the middle of the screen appear always in red, and always underlined
    2. Get the "Our Mission: A Million Visitors in 7 Days" aligned to the left with the rest of the headers
    3. Make the links in the footer appear in red, and underlined

    Can anyone please suggest the changes I should be making to the CSS code?
     
    JakeThePeg, Oct 26, 2009 IP
  2. Darkhodge

    Darkhodge Well-Known Member

    Messages:
    2,111
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    185
    #2
    The alignment of "Our Mission...." looks in line with the other headers on my screen.

    But for the other points you can do it with 1 CSS class, put this into your CSS file:

    
    .redUnderLined{
      color : #FF0000;
      text-decoration: underline;
    }
    
    Code (markup):
    Then you can just add the class to the relevant links, i.e.:

    
    <a class="url" href="http://www.shackn.com" >www.shackn.com</a>
    
    HTML:
    Change it to:

    
    <a class="url redUnderLined" href="http://www.shackn.com" >www.shackn.com</a>
    
    HTML:
    And same again for the footers:

    
    <a class="footer" href="http://onemillionhitwonder.com/about">about</a> | 
    <a class="footer"  href="http://onemillionhitwonder.com/contact">contact</a> |
    <a class="footer"  href="http://onemillionhitwonder.com/advertise">advertise</a> 
    
    HTML:
    Change this to:

    
    <a class="footer redUnderLined" href="http://onemillionhitwonder.com/about">about</a> | 
    <a class="footer redUnderLined"  href="http://onemillionhitwonder.com/contact">contact</a> |
    <a class="footer redUnderLined"  href="http://onemillionhitwonder.com/advertise">advertise</a> 
    
    HTML:
    Give me a shout about how that works out for you. ;)


    Hodge
     
    Darkhodge, Oct 28, 2009 IP
  3. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #3
    
    #url a, #table a.footer{ color:red; text-decoration:underline; }
    
    Code (markup):
     
    wd_2k6, Oct 29, 2009 IP
  4. JakeThePeg

    JakeThePeg Active Member

    Messages:
    230
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    legend, thanks mate!
     
    JakeThePeg, Nov 5, 2009 IP