navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Table Spacing Suddenley Spaced To Much

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Table Spacing Suddenley Spaced To Much
Page: [1]
 
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
Table Spacing Suddenley Spaced To Much - 6/11/2007 22:00:22   
I was working on adding naother table to my index page but when i did it spaced the center tables to far to the right. Now even on the pages that I did not edit all tables in the center column are spaced to far right. Here is my site:
http://ccwwrestling.5gbfree.com/index.php

Thanks for any help.
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Table Spacing Suddenley Spaced To Much - 6/12/2007 2:31:49   
Try removing the margins:

table {margin:0;}


All elements in the code will have default margins and padding and these defaults vary browser to browser which is why I usually "reset" the lot of them by adding in

* {margin:0; padding:0;}


Which will remove all margins and padding from every element (you can refine this technique slightly to remove some but not all) and I then add in margins or padding as and where I want. The advantage of doing this is that you start with a level playing field - all browsers the same. It helps reduce problems.

< Message edited by Tailslide -- 6/12/2007 2:37:05 >


_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Xplorer4x4)
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
RE: Table Spacing Suddenley Spaced To Much - 6/12/2007 2:44:24   
Thanks, it worked when i reset them to 0 but i tried changing it to 1 and it went back to the way it was earlier.

The thing i do not understand is why it would now affect pages i did not edit. I have been using the same browser from the start, Gran Paradiso Alpha 4(Which is proving to be a very stable alpha release of FireFox 3.0). I did later the CSS slightly on the index and when i seen the table moved to far right i used the default css, but that does not fix it.

As the title says it was sudden, more so for the fact that pages that were not edited are effected.

I only need a one or two pixel border between the navigation tables on the left and the center tables.

I knew you would come through tailslide :p

(in reply to Tailslide)
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Table Spacing Suddenley Spaced To Much - 6/12/2007 3:04:29   
Yes you need to specify the measurement - you can't just add margin:1 - it's an error and it'll override the whole rule. If you add margin:1px then it works fine. You can add in a border too if you prefer.

I don't use tables for layout so I'm no expert on their behaviour cross-browser and I can't tell you why the containing table seems to be expanding in Firefox. With margins removed it seems to stop it though.

You'd be much much better off having all these CSS rules in a stylesheet - that way you could edit it in one place and it changes site-wide. Having it in the page head is much too much like hard work!

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Xplorer4x4)
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
RE: Table Spacing Suddenley Spaced To Much - 6/12/2007 3:24:00   
Good point I will probably do so tomorrow. Thanks for the help and suggestion, once again tailslide, you have been of great assistance, and I am very grateful for your help.

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Table Spacing Suddenley Spaced To Much
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts