Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

css help

New Here ,
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
TOPICS
Server side applications

Views

209
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 13, 2007 Feb 13, 2007

Copy link to clipboard

Copied

LATEST
> 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
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines