Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

browser width control

Posted 09 Feb 2005 21:52:25
1
has voted
09 Feb 2005 21:52:25 shola law posted:
hello good pple of the forum, i created a table in dreamwever of 100% and i want to create a graphic in fireworks that streches across the table without horizontal bar appearing on the browser window.
Pls how can get this done. Also, is there any standard conversion for pixel to percentage and vice - versa?

If u think u can u can

Replies

Replied 10 Feb 2005 00:45:26
10 Feb 2005 00:45:26 Dave Thomas replied:
if you stretch the graphic 100% its gonna get ugly real quick.

best way to do it concerns how you design the graphic.

so for instance if you have a graphic that aligned to the left corner
i would make sure the right side of my graphic could blend in with the colour that is going to be getting 'stretched'

and for centering your graphic, make sure both sides can blend into the background colour.

then all you need is to make a slice in the background colour of 1px wide, and use a little css to make it flow across your page horizontaly, but without the file size of a graphic.

<pre id=code><font face=courier size=2 id=code>
background-image<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>../your image path here);
backgorund-repeat: repeat-x;
</font id=code></pre id=code>

post back if you get stuck on anything

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 10 Feb 2005 18:16:19
10 Feb 2005 18:16:19 shola law replied:
hi good pple thank for the reply. Anyway, i discovered that when u make a table of 100% n want it to an image without horizontal scrollbar, u could make the image 973px in fireworks, but if the u want to make a table n use the zero margins in a css rule , make the image 993 px in fireworks and issuse the css rule thus:
&lt;body style=margin:0px&gt;

If u think u can u can
Replied 10 Feb 2005 19:15:32
10 Feb 2005 19:15:32 Dave Thomas replied:
well what you foind out was wrong <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

px does not go into %, every screen is a different size, so if you do it that way, you will not get the effect your looking for.

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 11 Feb 2005 13:55:44
11 Feb 2005 13:55:44 shola law replied:
my bad, i actually tried what i said on a monitor size of about 1024by786 and it worked, but on a monitor with a reduced px it is all messed up, so i will definately opt for your adviced.
Thanks a million, this forum has been the best thing that has happened to me this yr in my web design/ programming career

If u think u can u can

Reply to this topic