Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts

    HTML Coding Question: Adjusting Margins in a table

    Hello,
    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!
    Richard
    Attached Files Attached Files

  • #2
    Regular Coder
    Join Date
    Mar 2011
    Posts
    148
    Thanks
    0
    Thanked 20 Times in 20 Posts
    Hi,
    Try add padding for left /right margins to those columns with text.
    For example: padding: 0 28px; .

  • Users who have thanked MarPlo for this post:

    RichardSturm (06-14-2012)

  • #3
    New to the CF scene
    Join Date
    Jun 2012
    Location
    Chicago, Il
    Posts
    7
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Post

    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.

  • Users who have thanked imdenisejones for this post:

    RichardSturm (06-14-2012)

  • #4
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thank you, Marplo and imdenisejones!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •