Forum Moderators: not2easy

Message Too Old, No Replies

I screwed up.

didn't use CSS and now my site is huge!

         

montanapa

5:29 pm on Dec 28, 2006 (gmt 0)

10+ Year Member



Ok..I will admit...I screwed up! I designed a website which was attached to a CSS. I added navigation manually to each page...dumb yes I know...and now my site is SOOO large that I have to manually update EACH page and I am regretting not using the CSS.
So my question is...is there anyway to go back and use the CSS? As you can probably tell I do not use the CSS very much and am kind of ignorant in this area. Is it too late to use it?
Also...the CSS controls the grey box that the main information is in...when I put text in the box and it too long it runs off of the grey box and I have to add pages to fit all of the information - I would really like to have the box extend to fit the information. This is another CSS issue.
SOOOO..

Break the news gently please :-)
Gracias!
Kellee

[edited by: jatar_k at 5:47 pm (utc) on Dec. 28, 2006]
[edit reason] no urls thanks [/edit]

londrum

9:00 pm on Dec 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



it's never too late... you can change whatever you want. it just takes longer the longer you leave it, that's all.

not sure what you mean though...
if you have added the navigation to each page manually, then CSS will not help you with that. CSS can only style the navigation. it cannot add the navigation itself.
if you only want to have to write out the navigation once, then you need to use something else, like a PHP include.

the grey box thing should be easy to fix. it must have a fixed height. just take it away and it should stretch to fit the content.
put all the content you want inside a div, and then just colour the div grey, and put a border on it. don't bother including heights and stuff.
but if the box is a frame, or an iframe (is it?) then there is nothing really that you can do. iframes have a fixed height out of necessity. you can get some javascript code (look it up on the web) to adjust the height dynamically, but it's probably simpler to use CSS and a PHP include.