Click to See Complete Forum and Search --> : What's the proper way to put some space after a div tag in CSS?
wienerdog
06-02-2006, 09:06 PM
I have sections of text that I'd like to put into a div tag with a background color, and then have another similar div tag immediately under it. The problem is, I want some space between them. Is it proper to simply put a non-breaking space between, or is there something in CSS I should do to my div ID rules that would create white space after each box?
JPnyc
06-02-2006, 09:07 PM
margin-right:somenumberofpx;
Can you do a div class wiener? How similar is similar? If they're the same then just use a class. I would think that you don't need a div id for sections of text like this. In any case, it would be margin-bottom: Xpx if they are one under the other.
wienerdog
06-02-2006, 09:13 PM
Will that work in IE 6 and Firefox?
wienerdog
06-02-2006, 09:17 PM
Can you do a div class wiener? How similar is similar? If they're the same then just use a class. I would think that you don't need a div id for sections of text like this. In any case, it would be margin-bottom: Xpx if they are one under the other.
Oh man, duh, you're right. I should be using a class. :rolleyes: at myself...
Drorain
06-02-2006, 09:21 PM
holy carp, its all greek to me...
this is why I leave all the webdesign to EC and company
Oh man, duh, you're right. I should be using a class. :rolleyes: at myself...
heehee :p
mylkhead
06-03-2006, 03:49 AM
Yeah just do this:
margin-bottom:10px;
That would work. Doesn't have to be 10 pixels, but whatever you want. That's the way I would do it.