View Full Version : HTML Coding Question: Adjusting Margins in a table

06-09-2012, 04:11 AM
I've created a table with one row containing a graphic and the bottom row containing text. I'd like for the text to align with the graphic above, so that the text has the same margins as the graphic above. Currently the text spans to the left and right of the graphic above.

I know I'm missing something simple. Your assistance in this code would be appreciated.

I've attached the code in a txt file.

Thank you very much for your help!

06-09-2012, 12:12 PM
Try add padding for left /right margins to those columns with text.
For example: padding: 0 28px; .

06-09-2012, 03:09 PM
Hey Richard.

Besides adding the padding command that MarPlo suggested, try adding your CSS in the <head> tag of your document or make an external stylesheet since you're repeating the same commands multiple times. This will help you make modifications to your code a lot easier down the road, even if this is just a one page website. Also, you have two <span> tags that have styles that could be combined together.

If you need help with making this, let me know. Hope this helps.

06-14-2012, 04:44 PM
Thank you, Marplo and imdenisejones!