This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2005 > Fixed page size





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Fixed page size
RickMorrison

2005-09-14, 11:17 pm

I am using the Dreamweaver CSS template and want to make the page size (left
and right margins) fixed so that if someone does not open up their browser
window wide enough, instead of the page being squished, the user has to scroll
left and right to see the entire contents of the page if they don't have their
browser window wide enough. Pretty basic. Can someone point me in the right
direction?

.: Nadia :. *TMM*

2005-09-15, 7:20 am

Unless you are very comfortable with css, html, and javascript I'd recommend
you not start with this template....

Murray has an article on the Halo template that may be of some use:
http://www.macromedia.com/devnet/dr...cting_halo.html


--
Nadia
--------------------------------------------
http://www.csstemplates.com.au
Templates | CSS Templates |
http://www.DreamweaverResources.com
Dropdown Menu Templates | SEO Articles |Tutorials
---------------------------------------------
Team MM Volunteer for Dreamweaver
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
---------------------------------------------


"RickMorrison" <webforumsuser@macromedia.com> wrote in message
news:dgal9j$4lv$1@forums.macromedia.com...
>I am using the Dreamweaver CSS template and want to make the page size
>(left
> and right margins) fixed so that if someone does not open up their browser
> window wide enough, instead of the page being squished, the user has to
> scroll
> left and right to see the entire contents of the page if they don't have
> their
> browser window wide enough. Pretty basic. Can someone point me in the
> right
> direction?
>



Randy Edmunds

2005-09-15, 7:21 pm

Create a <div> immediately inside your <body> that looks like this:

<body>
<div id="main">

<!-- all page content here -->

</div>
</body>

Then define the #main css selector to have a width:

#main {
width: 600px; /* or whatever */
}

You don't need to worry about the height because the content will flow
down to the necessary height.

HTH,
Randy


> I am using the Dreamweaver CSS template and want to make the page size (left
> and right margins) fixed so that if someone does not open up their browser
> window wide enough, instead of the page being squished, the user has to scroll
> left and right to see the entire contents of the page if they don't have their
> browser window wide enough.


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews