SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Couple CSS Issues
-
Sep 28, 2004, 08:26 #1
- 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.
-
Sep 28, 2004, 13:28 #2
- 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;}
-
Sep 28, 2004, 14:35 #3
- 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.
Bookmarks