0
css help
New Here
,
/t5/dreamweaver-discussions/css-help/td-p/635663
Feb 12, 2007
Feb 12, 2007
Copy link to clipboard
Copied
hello all
i have never used css before, all my sites are just layers and images. i am wondering how to make a web page that sits on a background and when browser window is streched, stays centered. any help would be very much appreciated. thanks
i have never used css before, all my sites are just layers and images. i am wondering how to make a web page that sits on a background and when browser window is streched, stays centered. any help would be very much appreciated. thanks
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/dreamweaver-discussions/css-help/m-p/635664#M172129
Feb 13, 2007
Feb 13, 2007
Copy link to clipboard
Copied
> all my sites are just layers and images
That's not good.
Here's how to make a centered page with CSS -
Change this -
</head>
to this -
<style type="text/css">
<!--
body { text-align:center; }
#wrapper { text-align:left; width:760px; margin:0 auto;position:relative; }
/* 760px will display on an 800px screen maximized browser window without */
/* horizontal scrollbars. */
-->
</style>
</head>
change this -
<body ...>
to this -
<body ...>
<div id="wrapper">
and this -
</body>
to this -
<!-- /wrapper -->
</div>
</body>
and see if that helps.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"chenpo" <webforumsuser@macromedia.com> wrote in message
news:eqrl9h$ovk$1@forums.macromedia.com...
> hello all
> i have never used css before, all my sites are just layers and images. i
> am
> wondering how to make a web page that sits on a background and when
> browser
> window is streched, stays centered. any help would be very much
> appreciated.
> thanks
>
That's not good.
Here's how to make a centered page with CSS -
Change this -
</head>
to this -
<style type="text/css">
<!--
body { text-align:center; }
#wrapper { text-align:left; width:760px; margin:0 auto;position:relative; }
/* 760px will display on an 800px screen maximized browser window without */
/* horizontal scrollbars. */
-->
</style>
</head>
change this -
<body ...>
to this -
<body ...>
<div id="wrapper">
and this -
</body>
to this -
<!-- /wrapper -->
</div>
</body>
and see if that helps.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"chenpo" <webforumsuser@macromedia.com> wrote in message
news:eqrl9h$ovk$1@forums.macromedia.com...
> hello all
> i have never used css before, all my sites are just layers and images. i
> am
> wondering how to make a web page that sits on a background and when
> browser
> window is streched, stays centered. any help would be very much
> appreciated.
> thanks
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

