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

Thread: CSS and margins

  1. #1
    New Coder
    Join Date
    Nov 2011
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS and margins

    Hey everyone, I'm in charge of a sport team websites, www.nlsoftball.ca. The system hosting the site (something I inherited, not a system I'd ever choose) is very proprietary and hard for me to understand. It uses these templates that are made up by xsl and mst files. I've tried to search for more info on the net but found none. And the company's support desk isn't getting back to me. The files seem to be a combination of html and css. There's also a generic css template somewhere for use with custom pages.

    Anyway, now that you have some background, the margins are whacky. On every page the content stretches for something like 60%. And to the right of the content is a blue background that stretches for the other 40% (per centages are just guesses). I'm struggling to figure out how to remove the blue background altogether and stretch the content to 100%.

    If anyone has a moment to take a look at what's going on, I'd appreciate it...

    Thanks,
    Jeremy

  • #2
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    The page is made with tables.

    Look at the code and find a width for a table or a table data cell. I looked at the code and the page is made with tables, the page has one of the table data cells or tables with width = "849" you can change that width to make the table how big you want it to be.

  • #3
    New Coder
    Join Date
    Nov 2011
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Greg, changing width="849" to width="100%" did the trick.
    Quick question--if the width attribute is not defined in a table, is 100% assumed?

  • #4
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know what the browser's do with a table without a width, I have seen some make it the width of the widest thing in it and I have seen some that make it the size of the window. You have to look at the web pages that you make to know what a browser will do.

    Always check everything you do before you put it on a web site.


  •  

    Posting Permissions

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