Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Refresh always needed for 100% table width

Reply
Thread Tools

Refresh always needed for 100% table width

 
 
C. David Rossen
Guest
Posts: n/a
 
      06-27-2005
Hello:

I have had this problem on many websites I have built and just cannot figure
out why it is doing this.

On a page whose main table is 100% in width, the table does not extend all
the way on the right. The browser has to be refreshed each time you go to
the page for it to extend all the way to the right and fill the screen. Does
anyone know why this happens and if there is a fix for this?

Any help would be appreciated. Thank you.

David



 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      06-27-2005
C. David Rossen wrote:
> Hello:
>
> I have had this problem on many websites I have built and just
> cannot figure out why it is doing this.
>
> On a page whose main table is 100% in width, the table does not
> extend all the way on the right. The browser has to be refreshed
> each time you go to the page for it to extend all the way to the
> right and fill the screen. Does anyone know why this happens and if
> there is a fix for this?


How about a URL or two where this occurs so we can see it?

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
 
 
 
C. David Rossen
Guest
Posts: n/a
 
      06-27-2005
Here you go...

www.cdrmarketing.com/hm

thanks.

David

"Beauregard T. Shagnasty" <(E-Mail Removed)> wrote in message
news:m1Lve.40311$(E-Mail Removed)...
> C. David Rossen wrote:
> > Hello:
> >
> > I have had this problem on many websites I have built and just
> > cannot figure out why it is doing this.
> >
> > On a page whose main table is 100% in width, the table does not
> > extend all the way on the right. The browser has to be refreshed
> > each time you go to the page for it to extend all the way to the
> > right and fill the screen. Does anyone know why this happens and if
> > there is a fix for this?

>
> How about a URL or two where this occurs so we can see it?
>
> --
> -bts
> -This space intentionally left blank.



 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      06-27-2005
C. David Rossen wrote:

[top-posting fixed]
> "Beauregard T. Shagnasty" <(E-Mail Removed)> wrote in
> message news:m1Lve.40311$(E-Mail Removed)...
>
>> C. David Rossen wrote:
>>
>>> I have had this problem on many websites I have built and just
>>> cannot figure out why it is doing this.
>>>
>>> On a page whose main table is 100% in width, the table does not
>>> extend all the way on the right. ...

>>
>> How about a URL or two where this occurs so we can see it?


> Here you go...
>
> www.cdrmarketing.com/hm


First, I see no DOCTYPE, so browsers are in quirks mode. Add a Strict
doctype and see what happens.

http://www.w3.org/QA/2002/04/valid-dtd-list.html

Use HTML 4.01 Strict:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Some browsers interpret margin and padding differently, so drop the
invalid <body topmargin="0" leftmargin="0"> and use CSS to set all
margin and padding to zero.

body { margin: 0, padding: 0 }

The rest is nested tables and I don't want to try and
troubleshoot that. After you add the doctype, revisit here:
<http://validator.w3.org/check?verbose=1&uri=http%3A//www.cdrmarketing.com/hm/>

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
C. David Rossen
Guest
Posts: n/a
 
      06-27-2005
bts-

Thanks very much. The margin style did the trick.

David


"Beauregard T. Shagnasty" <(E-Mail Removed)> wrote in message
news:ilTve.55863$(E-Mail Removed)...
> C. David Rossen wrote:
>
> [top-posting fixed]
> > "Beauregard T. Shagnasty" <(E-Mail Removed)> wrote in
> > message news:m1Lve.40311$(E-Mail Removed)...
> >
> >> C. David Rossen wrote:
> >>
> >>> I have had this problem on many websites I have built and just
> >>> cannot figure out why it is doing this.
> >>>
> >>> On a page whose main table is 100% in width, the table does not
> >>> extend all the way on the right. ...
> >>
> >> How about a URL or two where this occurs so we can see it?

>
> > Here you go...
> >
> > www.cdrmarketing.com/hm

>
> First, I see no DOCTYPE, so browsers are in quirks mode. Add a Strict
> doctype and see what happens.
>
> http://www.w3.org/QA/2002/04/valid-dtd-list.html
>
> Use HTML 4.01 Strict:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> Some browsers interpret margin and padding differently, so drop the
> invalid <body topmargin="0" leftmargin="0"> and use CSS to set all
> margin and padding to zero.
>
> body { margin: 0, padding: 0 }
>
> The rest is nested tables and I don't want to try and
> troubleshoot that. After you add the doctype, revisit here:
>

<http://validator.w3.org/check?verbos...arketing.com/h
m/>
>
> --
> -bts
> -This space intentionally left blank.



 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      06-27-2005
C. David Rossen wrote:
> bts-
>
> Thanks very much. The margin style did the trick.


You're welcome. You may want to add the padding: 0 as well, since
different browsers treat it differently.

Again, please don't top-post, and trim quotes as necessary.
http://oakroadsystems.com/genl/unice.htm#upside

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tetration (print 100^100^100^100^100^100^100^100^100^100^100^100^100^100) jononanon@googlemail.com C Programming 5 04-25-2012 08:49 PM
Shrinking the width of a WIDTH=100% table Swifty Javascript 18 01-23-2012 03:36 PM
Help! Fixed width table with a 100% width image in it is assuming theimages intrinsic size, although it does shrink the image satya.komatineni@gmail.com HTML 1 12-29-2007 08:32 PM
Table width is always at 100% Trap Javascript 0 07-30-2007 01:26 PM
how to replace this like <img width=100 ...> with <img width="100" ...> zhanye815@gmail.com Perl Misc 7 06-21-2006 11:16 PM



Advertisments