HighDots Forums  

Centering a site with layers

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Centering a site with layers in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
freddyfries
 
Posts: n/a

Default Centering a site with layers - 07-02-2006 , 01:17 PM






I am trying to centre a site built with layers

http://www.captivationstudios.com/menutest2.html here is the inital version. I
seem to have the alignment sorted however my CSS styles for the text itself do
not appear to be working. The text is being should be formatted with the menu
CSS style, it does not seem to effect the text though. i guess it is something
to do with the div id's.

Can anyone help?? It would be very much appreciated

Thanks in advance



Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Centering a site with layers - 07-02-2006 , 01:31 PM






Change this -

</head>

to this -

<style type="text/css">
<!--
body { text-align:center; color:#CCC; }
#wrapper { text-align:left; width:720px; margin:0 auto;position:relative; }
-->
</style>
</head>

change this -

<body ...>

to this -

<body ...>
<div id="wrapper">

and this -

</body>

to this -

</div><!-- /wrapper -->
</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
==================


"freddyfries" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I am trying to centre a site built with layers

http://www.captivationstudios.com/menutest2.html here is the inital
version. I
seem to have the alignment sorted however my CSS styles for the text
itself do
not appear to be working. The text is being should be formatted with the
menu
CSS style, it does not seem to effect the text though. i guess it is
something
to do with the div id's.

Can anyone help?? It would be very much appreciated

Thanks in advance





Reply With Quote
  #3  
Old   
freddyfries
 
Posts: n/a

Default Re: Centering a site with layers - 07-02-2006 , 05:21 PM



Hmmm I'm not really too sure if that has done the trick. The amended page is
at
http://www.captivationstudios.com/menutest3.html the previous version
http://www.captivationstudios.com/menutest2.html centred both horizontally and
vertically which I liked, is it possible with this other technique?

The other thing that I am struggling to get my head around is how to set up
the CSS for the menu part of the page.

I'm fairly new to all this stuff, is it so, that CSS is heirachical. ie the
CSS above a table will take preference over the CSS over a paragraph? Because
at present I am unable to effect the text in my table. Any help would be most
gratefully recieved!

From frustrated in Berlin!

Thanks


Reply With Quote
  #4  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Centering a site with layers - 07-02-2006 , 09:03 PM



Quote:
is it possible with this other technique?
No. If you need that, use frames. But don't use frames! 8)


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


"freddyfries" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hmmm I'm not really too sure if that has done the trick. The amended page
is
at
http://www.captivationstudios.com/menutest3.html the previous version
http://www.captivationstudios.com/menutest2.html centred both horizontally
and
vertically which I liked, is it possible with this other technique?

The other thing that I am struggling to get my head around is how to set
up
the CSS for the menu part of the page.

I'm fairly new to all this stuff, is it so, that CSS is heirachical. ie
the
CSS above a table will take preference over the CSS over a paragraph?
Because
at present I am unable to effect the text in my table. Any help would be
most
gratefully recieved!

From frustrated in Berlin!

Thanks




Reply With Quote
  #5  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Centering a site with layers - 07-02-2006 , 09:04 PM



Quote:
I'm fairly new to all this stuff, is it so, that CSS is heirachical. ie
the
CSS above a table will take preference over the CSS over a paragraph?
Not at all.

Quote:
Because
at present I am unable to effect the text in my table. Any help would be
most
gratefully recieved!
Show me your page. I suspect you have a page rendering in quirks mode which
would mean that you need to explicitly define the table cell styles in your
CSS.

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


"freddyfries" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hmmm I'm not really too sure if that has done the trick. The amended page
is
at
http://www.captivationstudios.com/menutest3.html the previous version
http://www.captivationstudios.com/menutest2.html centred both horizontally
and
vertically which I liked, is it possible with this other technique?

The other thing that I am struggling to get my head around is how to set
up
the CSS for the menu part of the page.

I'm fairly new to all this stuff, is it so, that CSS is heirachical. ie
the
CSS above a table will take preference over the CSS over a paragraph?
Because
at present I am unable to effect the text in my table. Any help would be
most
gratefully recieved!

From frustrated in Berlin!

Thanks




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.