Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-03-2013, 04:13 AM   PM User | #1
JeremySchubert
New Coder

 
Join Date: Nov 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
JeremySchubert is an unknown quantity at this point
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
JeremySchubert is offline   Reply With Quote
Old 02-03-2013, 06:22 PM   PM User | #2
greg_baugher
New to the CF scene

 
Join Date: Feb 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
greg_baugher is an unknown quantity at this point
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.
greg_baugher is offline   Reply With Quote
Old 02-04-2013, 03:07 AM   PM User | #3
JeremySchubert
New Coder

 
Join Date: Nov 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
JeremySchubert is an unknown quantity at this point
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?
JeremySchubert is offline   Reply With Quote
Old 02-04-2013, 11:57 PM   PM User | #4
greg_baugher
New to the CF scene

 
Join Date: Feb 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
greg_baugher is an unknown quantity at this point
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.
greg_baugher is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:29 AM.


Advertisement
Log in to turn off these ads.