![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Fo some reason I keep having problems figuring out how to center div's. I have a header and a footer div, then there is a contentAll div between them. With in the contentAll div there is a catIndex div. It is this div that I would like to get centered both horizontally and vertically. What am I missing to make that happen? |
#2
| |||
| |||
|
|
Posting a URL like you were asked to do before. |
#3
| |||
| |||
|
|
On Sep 29, 5:58 pm, "Jonathan N. Little" <lws4... (AT) centralva (DOT) net wrote: Posting a URL like you were asked to do before. Jonathan, I am so sorry, I missed that request previously. Here is the issue, the development I am doing is not on the Internet, but a intranet. I currently don't have a public web site, do you have any suggestions on where I can create a free web hosting account to post this code? Cartoper |
#4
| |||
| |||
|
|
Geocities is good. Failing that, drop me an e-mail and I'll lend you a sub-directory on my site. |
#5
| |||
| |||
|
|
On Sep 29, 6:26 pm, Brendan Gillatt brendanREMOVET... (AT) brendanREMOVETHISgillatt (DOT) co.uk> wrote: Geocities is good. Failing that, drop me an e-mail and I'll lend you a sub-directory on my site. Thank you for the offer, I found one though: http://cartoper.ueuo.com/centering.htm Again, the objective is to get the three gray boxes centered in the white area. If you are wondering, the gray boxes are actually links to new pages that will have arrows on theright side pointing right. Cartoper |
#6
| |||
| |||
|
|
On Sep 29, 6:26 pm, Brendan Gillatt brendanREMOVET... (AT) brendanREMOVETHISgillatt (DOT) co.uk> wrote: Geocities is good. Failing that, drop me an e-mail and I'll lend you a sub-directory on my site. Thank you for the offer, I found one though: http://cartoper.ueuo.com/centering.htm Again, the objective is to get the three gray boxes centered in the white area. If you are wondering, the gray boxes are actually links to new pages that will have arrows on theright side pointing right. |
#7
| ||||
| ||||
|
|
First thing to do is to validate your html and get the obvious errors out, things like no start tags for end tags (see, for example, your line 160) ... |

|
Next, forget about the XHTML 1.0 Strict doctype, use 4.01 Strict if you have no firm arguments to use one over the other. |
|
Your links in their grey boxes would be better marked up as a list. |
|
All the divs within divs within divs seems overly complicated, the reason for such not being clear... and causing confusion and trouble. You do not need absolute positioning for simple a design, except perhaps for your experiments with footer (there it is an understandable stab) |
#8
| |||
| |||
|
| http://cartoper.ueuo.com/centering.htm Again, the objective is to get the three gray boxes centered in the white area. If you are wondering, the gray boxes are actually links to new pages that will have arrows on theright side pointing right. First thing to do is to validate your html and get the obvious errors out, things like no start tags for end tags (see, for example, your line 160) ... |
#9
| |||
| |||
|
|
On Sep 29, 8:16 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: http://cartoper.ueuo.com/centering.htm First thing to do is to validate your html and get the obvious errors out, things like no start tags for end tags (see, for example, your line 160) ... I did check the file on my hard drive and saw that the <link> element was not closed, fixed that and uploaded a version that is vertually identical to what my application is using. When I checked the URL, there where a lot of errors, but when you look at the source, you will see extra stuff after the end of the body element, all put there by the hosting compnay ![]() |
|
Next, forget about the XHTML 1.0 Strict doctype, use 4.01 Strict if you have no firm arguments to use one over the other. Why? What harm is there in XHTML 1.0 Strict doctype? |
|
Your links in their grey boxes would be better marked up as a list. I will look into that, thanks! All the divs within divs within divs seems overly complicated, the reason for such not being clear... and causing confusion and trouble. You do not need absolute positioning for simple a design, except perhaps for your experiments with footer (there it is an understandable stab) One of the objectives of the basic frame (header/contentAll/footer) is that on another page I need to find out how big the contentAll is as to know how to lay things out. Other then that, I am wide open to a better way of doing things. Please do have another look at the link, for it has changed. http://cartoper.ueuo.com/centering.htm |
#10
| |||
| |||
|
|
h1><span>The Title</h1 |
![]() |
| Thread Tools | |
| Display Modes | |
| |