By bobo on
Kia ora everyone,
I have a website www.ndu.org.nz (login with ndu and password nedludd).
On the page http://ndu.org.nz/services you can see that the text goes over the edge of the page.
I can't figure out why. I'm not the best CSS person.
I though I had limited the size of the page by having a set width of 800px but it goes over it anyway...
the CSS stylesheet is at www.ndu.org.nz/themes/NDU/style.css
You'll have to ignore the problems with Nice Menus I've tried to get two different nice menu styles at once without much luck. But that's another issue!
Simon
Comments
what browser are you viewing
what browser are you viewing it in ? have you tried a different browser to see if your problem is browser specific ? or across all browsers ?
In your theme's style.css,
In your theme's style.css, look at
#container {
width:800px;
... [more irrelevenat styles]
}
My guess is that you have way to small of a width, for way to much content, all of which is in a table (won't go into why this bad...). Try setting #container 's width to
width:1200px;
see if you have overflow issues. If you don't, than you've found your problem. Let me know.
--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.onnetworks.com
--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.zivtech.com
Get a DOM inspector
Your page may be 800px, but...
your #sidebar-left is 30% (240px) leaving 560px.
#main has padding left and right of 40px, leaving 480px.
Your embedded table is hard-coded to 526px.
Does not compute.
Your cells inside are spaced out because they believe they should be sharing out the 526px between themselves.
You are going to have to lose some of those margins. Remove the hard-coded dimensions from the table.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards