This is a discussion on "Are you able to explain this? I'd be grateful" within the Web Page Design section. This forum, and the thread "Are you able to explain this? I'd be grateful are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Are you able to explain this? I'd be grateful
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Are you able to explain this? I'd be grateful
I'm only just starting to learn this stuff - What I really want to know is - what aligns the the main container in the centre of the browser window, like on this page?
http://www.eostreorganics.org/ That's made from a template, now I'm trying to write my own template from scratch, but I can't work out how the centre alignment's done.. http://www.newoptical.net/newoptical.html I presume it's CSS anyway. If anyone would be kind enough to explain that too me I'd be most grateful. Thanks, Adam |
|
|
|
#2
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
http://www.eostreorganics.org/style/style.css |
|
#3
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Thanks Padraig, that was my original thought, but the second link in my first post has the same exact section of css in it too, yet that's still stuck on the left..
Last edited by newoptical; May 11th, 2007 at 00:05. |
|
#4
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Quote:
|
|
#5
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
you also want to do this for older IE Browsers because some of them dont recognize margins.
|
|
#6
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Proper coding to center the div is
|
|
#7
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Thanks guys, good stuff - I've taken both your recommendations on board. Thus far..
http://www.newoptical.net/ |
|
#8
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Actually, the right way of doing it is simply (taking your code here):
How to center your site horizontally body can be used to style too! Last edited by karinne; May 11th, 2007 at 14:27. |
|
#9
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Don't forget text-align:center; on the body and text-align:left on your container for IE 5.x. Sucks but necessary.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#10
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Quote:
http://www.newoptical.net/ http://www.newoptical.net/style/newoptical.css I did what Karinne suggested to, and removed all the other previous centre align code. Last edited by newoptical; May 11th, 2007 at 14:58. |
|
#11
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Yup, just because IE 5.x doesn't support margin:0 auto;
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#12
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Yeppers!
|
|
#13
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Nice! Thanks again, what a great forum
|
|
#14
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
:rofl: You're saying that 'cause you just got here!
|
|
#15
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
karinne let him tell how much he loves us and revears us like gods (of the internet).
|
|
#16
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
Long live tha intarWeb Screenies!
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#17
|
|||
|
|||
|
Re: Are you able to explain this? I'd be grateful
this guy...
|
![]() |
| Tags |
| alignment, centre alignment, css, help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can someone explain this briefly to me | perform300 | Website Planning | 3 | Sep 2nd, 2007 02:10 |
| Can someone explain this to me? | brockomundo | JavaScript Forum | 2 | Jun 30th, 2007 01:50 |
| Could someone explain the advantages of having validated HTML coding? | christopher | Web Page Design | 11 | Aug 3rd, 2006 12:59 |
| grateful for any help and advice on web hosting. | bigpato | Hosting & Domains | 5 | Jun 27th, 2006 10:17 |