If you go to [url]www.ebay.com[/url], you will see that their website shows equal spacing between each section/element on their page. There is about 20px worth of empty space seperating the borders of each area giving a more uniform look. How do you accomplish this in a DIV column for example? Do I need to add a “spacer DIV” that is 20px in width within the original DIV column to get that equal seperating between the borders of different sections?
Sorry if this is a n00b question, as I myself am a n00b to CSS. I am a <table> convert.
@TheBearMayMar 13.2009 — #In this case it's the margin-left: [code=html] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript">
@il_devoauthorMar 13.2009 — #In this case it's the margin-left: [code=html] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript">
How do the margins affect backgraound images/borders?
Ebay elements contain background borders and headers that enclose each section. If you add a background image (such as a curved corner) to the top-right for example, wont it place that image at the very edge of the DIV area? Will the margin value push the background image away from the edge?
@KelonMar 13.2009 — #I don't believe a background image inherits the above rule as it is a property of the div rather than an independant item. That's regardless of whether your CSS rule is defined as an id or class. I'm pretty confident I'm right on this, someone more experienced will soon correct me (and they will be welcome to do so). Easy to test out...