TinyPortal

Development => Support => Topic started by: thist on February 12, 2008, 09:23:44 PM

Title: Forum width in IE
Post by: thist on February 12, 2008, 09:23:44 PM
Before I get yelled at for searching, I did search!  Both on here and many many other sites. 

I'm trying to set an absolute banner width on my site using the width="100%" code.  It works BEAUTIFULLY in firefox but not so much with IE.  So far I've only tried IE7 so I'm not sure about the previous products.  Right now the site responds to firefox and expands to fit the page regardless of settings.  However in IE it makes the site about 5 page widths long. 

Every search and site that I've been to says just not to use IE7, however many users that visit my site either wont convert or I can't speak w/ them to tell them to convert so please don't tell me just to ignore the problem and avoid IE7.

Here's my code:

<table height="150" cellspacing="0" cellpadding="0" border="0">
<tr><td align="left" background="'.$settings['images_url'].'/rotate/bg1.gif"><img src="'.$settings['images_url'].'/rotate/bg1.gif" width="1154" height="150"></td>
<td align="right" backgrounds="'.$settings['images_url'].'/rotate/logo_left.gif"><img src="'.$settings['images_url'].'/rotate/logo_left.gif" height="150" width="100%"></table>';

site link - hiycguild.com/forums (http://hiycguild.com/forums)
Title: Re: Forum width in IE
Post by: IchBin on February 13, 2008, 12:45:24 AM
One thing about your code:
The background attribute for the <td> tag is depricated and you should use a background that way IMO.

Stretching an image to fit a page (especially a quality image like yours) will cause the image to pixelate and look poor in quality. The way you have it setup now looks OK to me in both FF and IE. But on a large resolution it does have a blue gap on the right side. However, it doesn't look unattractive to me. Not sure what advice to give you based on my opinions of things lol
Title: Re: Forum width in IE
Post by: thist on February 13, 2008, 06:52:35 AM
The image that is stretching is a block of blue on the right hand side.  So I'm not worried about that pixelating.  However when that gets brought up in IE (at least on my computer and a few of my friends) it causes a horizontal scroll bar that is almost three pages wide. 

Now the comment that you made about the <td> tag.  I'm fairly new to coding and I really have no idea what you meant by the statement "you should use a background".  I thought it was set as a background ... :( lol. 

After posting this I started doing some heavy reading and I read in a few different articles that IE doesn't represent the width=100% statement very well.  I saw some places to put an absolute width on the page using something like width:expression(400 + px) or at least something similar.  Two questions with that:  First if I did choose to do something like that what should I make the absolute width?  Second, I have NO IDEA where to put that code inside of the 3-4 pages of code I have >.>

Again, thanks for any and all help I get on this.  Just trying to get on top of the learning curve. 
Title: Re: Forum width in IE
Post by: IchBin on February 13, 2008, 03:39:55 PM
Sorry, I meant to say "you shouldn't use a background that way". You should put your background in using CSS. Just my $.02. If it works for you and you are OK with it, don't worry about it. :)

Ok, so your blue stretching image is intended. Thats what I thought you were referring to. However, I cannot reproduce your error with the scrollbar. It looks fine on my IE7.
Title: Re: Forum width in IE
Post by: thist on February 13, 2008, 07:37:52 PM
Well shoot :( it's still a problem for me.  Ok I'll try and find some more references to what I'm talking about via google :-P.  Thanks though!

And as far as the background goes:  It's not my theme.  I downloaded it and that's the code that was in there.  I'm just sort of patching together what I think is legitimate code to make my banner unique.  If I knew how to use something else I probably would lol. 
Title: Re: Forum width in IE
Post by: IchBin on February 13, 2008, 08:08:08 PM
Well, looking closer at your code I noticed its not complete. Replace your code with this and see if it helps.

<table height="150" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left" background="'.$settings['images_url'].'/rotate/bg1.gif"><img src="'.$settings['images_url'].'/rotate/bg1.gif" width="1154" height="150"></td>
<td align="right" backgrounds="'.$settings['images_url'].'/rotate/logo_left.gif"><img src="'.$settings['images_url'].'/rotate/logo_left.gif" height="150" width="100%"></td>
</tr>
</table>';
Title: Re: Forum width in IE
Post by: thist on February 13, 2008, 10:44:03 PM
Nope no change :(  Thanks though :-P