|
| |
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
finally built a site using only CSS - 10/3/2006 9:10:18
i've been attempting this for some time, but never had a site I'd built be small enough to attempt, but i finally had one. No tables whatsoever. http://www.stepbeyond.com/ my question is about spacing though. there are a number of spots within the one page that i've had to add a bunch of <br> to get the spacing to look right and how the client wanted it. Is there something within CSS that i can use to do this? I've used line height within the div container where the content is, but some of the lines require different heights. Is there an easier way to do this other than using a dozen <br>s? thanks
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: finally built a site using only CSS - 10/3/2006 10:17:55
As Caz said it's not a good idea to use divs unecesarily - just for presentation that is. You can however just style the stuff you've already go in there - for instance if you have a list and want to add space below it (and to make it easy assume that this list is in a div called content) then you'd just do:
#content ul {margin-bottom:20px;} or whatever. If you have a particular paragraph that you want to add space below then you could assign a class to the paragraph and add margin-bottom in much the same way.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|