Help - Search - Members - Calendar
Full Version: top margin
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
minidiapolis
On www.fountainchurch.org/test.html why isn't there space between the text and the pictures. I thought using margin-top would do the trick
pandy
Why don't you validate?
http://www.htmlhelp.com/cgi-bin/validate.c...s&input=yes

This is all mumbo jumbo.
CODE
<table width = 100%; margin-top : 50%>


You can't just drop CSS in a tag like that. You must put it in a style attribute. Both values should be quoted, "100%" too.
Frederiek
Setting the margin-top on the table to 50% pushes the table practically off screen. Use another percentage or unit.
Or give the div containing the text a bottom margin, eg. <div style="width: 80%; margin:0 auto 50px auto;">.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.