navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Center a Layer In FP2003

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Center a Layer In FP2003
Page: [1]
 
SBO

 

Posts: 30
Joined: 12/30/2004
Status: offline

 
Center a Layer In FP2003 - 2/6/2005 2:16:42   
I posted this in the beginners development section and someone suggested that I would need to use CSS. I'm trying to center a layer with FrontPage 2003 so the whatever the screen dimensions are layers will be centered. I'm using FrontPage 2003.
jaybee

 

Posts: 14122
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Center a Layer In FP2003 - 2/6/2005 5:04:09   
Ahhh now this dpends very much on the layer (Div) you are trying to centre. If it's just one Div then

.content {width: 100%; margin-left: auto; margin-right: auto;}
in your css and

<div class="content">put your content here</div>
in the HTML will work but if you have several divs then it depends how they're laid out.

Have you had a look at the tutorials in www.w3schools.org ?



_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to SBO)
SBO

 

Posts: 30
Joined: 12/30/2004
Status: offline

 
RE: Center a Layer In FP2003 - 2/7/2005 0:40:30   
What I'm wanting to do is similar what Google has. A fixed width but is centered no matter what the display settings are.

(in reply to jaybee)
jaybee

 

Posts: 14122
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Center a Layer In FP2003 - 2/7/2005 5:47:06   
OK, this shows you how to do it.

http://www.wpdfd.com/editorial/thebox/deadcentre4.html

If you view the source code behind the page you'll get all the code you need. All the css styles are up the top. You'll need to fiddle around with heights, widths etc but it does work. I have a site that does something similar.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to SBO)
SBO

 

Posts: 30
Joined: 12/30/2004
Status: offline

 
RE: Center a Layer In FP2003 - 2/8/2005 2:47:25   
Thanks for your help jaybee. I have decided to use Tables rather than Layers and centering tables is far easier.

(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Center a Layer In FP2003
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts