Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Design Issue

Status
Not open for further replies.

petenyce105

Programmer
Feb 3, 2004
12
US
I designed web page in 800 * 600 screen res. but when you look at it in 1024 * 768 it looks alot smaller any way through javascript or another way to auto size? or do i ahve to do a whole site redesign?
thanks pete
 
Technically, I guess you could have JS comb through the document and multiply all values though this will only work in newer browsers.

Most sites presented with this problem use different CSS for each resolution. You could take this further and have different CSS for each window size.

I'm thinking something like..

<script>
var css='<style rel=&quot;stylesheet&quot; link=&quot;
if (document.clientWidth > 750) css += 1024.css;
else css += 800.css;

css += '&quot;></style>'

document.write(css);
</script>

----------
I'm willing to trade custom scripts for... [see profile]
 
I should add that my syntax is completely wrong and I blame this on being distracted, sorry :p

----------
I'm willing to trade custom scripts for... [see profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top