Reply
How do you keep the width of your pages constant with any size monitor
Old 07-14-2006, 08:26 PM How do you keep the width of your pages constant with any size monitor
Junior Talker

Posts: 3
Hello


A while back I did a web site in dreamweaver mx
What code do I require so that the width of my pages and layout are not modified slightly when viewed on wider monitors?


Thanks
Gary.
garyjos is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-14-2006, 08:53 PM Re: How do you keep the width of your pages constant with any size monitor
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 200
Good luck with that one!

It varies on size, screen resolution, Web browser, window size...

You should rather look into how to make your site look good on any screen resolution in any Web browser. Look good; not look the same.
__________________
I do not share ad revenue.

Last edited by Moldarin : 07-14-2006 at 08:55 PM.
Moldarin is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 09:10 PM Re: How do you keep the width of your pages constant with any size monitor
moondog's Avatar
Ultra Talker

Posts: 256
Location: Croatia
use percentage width.

try with css code
moondog is offline
Reply With Quote
View Public Profile
 
Old 07-15-2006, 04:08 PM Re: How do you keep the width of your pages constant with any size monitor
LadynRed's Avatar
Super Moderator

Posts: 6,572
Location: Tennessee
If you want the page content to be the same width in all browsers, you'll have to set it up with a fixed width.. and use CSS.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-16-2006, 07:34 PM Re: How do you keep the width of your pages constant with any size monitor
Junior Talker

Posts: 3
Hello

How exactly do you make all my pages a fixed width using css please?

Thanks
Gary.
garyjos is offline
Reply With Quote
View Public Profile
 
Old 07-17-2006, 06:05 AM Re: How do you keep the width of your pages constant with any size monitor
blue-dreamer's Avatar
Webmaster Talker

Posts: 708
Location: Middle England
the "quick" way is to wrap all your page content in a <div>, you can then define width and position etc.
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 07-18-2006, 08:38 PM Re: How do you keep the width of your pages constant with any size monitor
Junior Talker

Posts: 3
It may sound stupid
But how do you simple change the width to a fixed value for a web page?
<html>
<div>
width=750px

Web - Page

<div>
</html>

<div> has no width parameter
garyjos is offline
Reply With Quote
View Public Profile
 
Old 07-19-2006, 03:21 AM Re: How do you keep the width of your pages constant with any size monitor
manthu64's Avatar
Average Talker

Posts: 27
Name: Manthan Dudani
Location: India
hi,

Try this code.
if u use table then <table width=""775"> make it fixed.
else u can use DIV then fixed the width of div tag in CSS part.
manthu64 is offline
Reply With Quote
View Public Profile
 
Old 07-19-2006, 04:51 AM Re: How do you keep the width of your pages constant with any size monitor
King Spam Talker

Posts: 1,004
Location: Manchester, UK
Quote:
Originally Posted by garyjos
It may sound stupid
But how do you simple change the width to a fixed value for a web page?
<html>
<div>
width=750px

Web - Page

<div>
</html>

<div> has no width parameter
To give your div a fixed width use something like this:

html
HTML Code:
<div id="container">
... your page contents go here ...
</div>

css
HTML Code:
#container {
width: 755px;
}
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Reply     « Reply to How do you keep the width of your pages constant with any size monitor
 

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15053 seconds with 12 queries