Guest Little Peach Posted November 29, 2005 Share Posted November 29, 2005 Hi thereI'm new to this forum, and would be grateful for some advice re: centralising pages in Dreamweaver.I started learning web design in the Spring this year, using Dreamweaver, and for a relative novice, have been able to put some really effective, simple sites together for our advertising company.We now want to modernise our design style a bit, using more CSS, tiling, etc, and centralising the page position. I've found some good tutorials for the former two, but have found no info on how to centralise the page in Dreamweaver. If anyone can help with this, I'd be ever so grateful. I'm a visual, rather than code, designer, so please keep it simple!Many thanksLittle Peach Link to comment Share on other sites More sharing options...
deejaybet Posted November 29, 2005 Share Posted November 29, 2005 for CSS use;body {text-align: center;}for just normal page (HTML) use;<center></center> tagsExample;<html><head></head><body><center>text here and other stuff</center></body></html> Link to comment Share on other sites More sharing options...
Mimika Posted November 30, 2005 Share Posted November 30, 2005 Well what i understand you want the hole page centeredthis is an exampel code <frameset cols="*,760,*" frameborder="NO" border="0" framespacing="0"> <frame src="Left.htm" name="leftFrame" scrolling="NO" noresize> <frameset rows="150,*" frameborder="NO" border="0" framespacing="0"> <frame src="Top.htm" name="topFrame" scrolling="NO" noresize> <frameset rows="*" cols="110,650" framespacing="0" frameborder="NO" border="0"> <frame src="Meny.htm" name="leftFrame1" scrolling="NO" noresize> <frame src="Middle.htm" name="mainFrame"> </frameset> </frameset> <frame src="Right.htm" name="rightFrame" scrolling="NO" noresize></frameset><noframes><body></body></noframes> the (*,760,*) text tells that the page are centered. you can then leave left and right to be empty space Link to comment Share on other sites More sharing options...
boen_robot Posted November 30, 2005 Share Posted November 30, 2005 for CSS use;body {text-align: center;}I recently learned that there is a small problem with this when it comes to ForeFox and Opera browsers. To fix this issue you must do:body {text-align: center; margin: auto;} I think it's like this because text-align aligns the content inside an element but not the element itself. Besides... the thing that wasn't aligned is a table...Someone please correct me if I'm wrong and suggest a better solution if any. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now