SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard rbutler's Avatar
    Join Date
    Jul 2003
    Location
    Springfield, MO
    Posts
    1,867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Couple CSS Issues

    Hey everyone,

    This page: http://midwestwebdesign.net/co2/

    Is turning out pretty nice for what I want to accomplish. Two things:

    1) What property:value would I use to create a little separation between the left border and the right hand content? I have been tinkering with margin and padding, but padding above 10 on all sides will break my layout on 800 x 600 (darn that resolution!)

    2) How could I create pseudo class links, so when they are hovered the background color spans the entire width of their containing block? I thought you could specify the width declaration in the actual pseudo class, evidently I'm wrong.

    Appreciate any feedback/suggestions.
    Ryan Butler

    Midwest Web Design

  2. #2
    Pointiest Petitions carrotflowers's Avatar
    Join Date
    Jul 2003
    Location
    Suburbs of DC (MD)
    Posts
    595
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    on point 2, are you thinking of the links (Link One Two etc?) at any rate, if you want it to span the entire width of the entire containing block, what you probably want to do is make the element itself a block level element with something like:
    a {display: block;}

  3. #3
    SitePoint Wizard rbutler's Avatar
    Join Date
    Jul 2003
    Location
    Springfield, MO
    Posts
    1,867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, that's what I meant. I'll give a{display:block} a test drive.

    Thanks.
    Ryan Butler

    Midwest Web Design


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •