Jump to content
The mkiv Supra Owners Club

Another request for CSS Guru help


fri3ndly

Recommended Posts

I have run into an annoying problem while developing my layout for a new website.

 

I was going to post on a css dedicated forum but they all take so long to reply whereas I know someone will help me out instantly here.....touch wood....:D

 

I have uploaded the index.php and style.css into a zip file attached here and would appreaciate any help.

 

Basically, the footer will not stay stuck to the bottom, although I do not want it to have a fixed position.

 

I need it so that whatever content is there it will always be at the bottom of the page and the menu column will always adjust to the size of the page too. You will see what I mean if you just subtract/add content and preview the page.

 

Thanks!

Link to comment
Share on other sites

sorry mate,

ive had a look and the page is all done in layers and i dont use layers so i realy dont know wha im doing with them,i use tables - using tables you could set the actual position of the footer more accurately,

also is there a reason you are using php ?

in the page you show theres nothing that realy needs to be in php,i ask because using php one needs to set up a testing server to view the page after each edit.,maybe standard html would do ?

anyhow sorry i couldnt help.

Link to comment
Share on other sites

Hi mate

 

I use PHP for the development and test it using a server. The extension can simply just be changed from .php to .html

 

It is done in layers to comply with W3C and as its a lot more simple to look at and for search engines.

 

I used to do all my coding with tables but would never use them again. Learn to use pure CSS for layout. When a search engine reads your site it should just see standard headers, lists and paragraphs asI believe they find looking for data in tables a lot harder.

 

No problem, thanks for looking

Link to comment
Share on other sites

I see what the benefits are of using CSS,however using pure css for layout is dodgy as it realy relies on upto the minuite browsers,and as you know css has compatability issues across diff browsers,.also table based designs can be viewed by a larger audience.

Link to comment
Share on other sites

I see what the benefits are of using CSS,however using pure css for layout is dodgy as it realy relies on upto the minuite browsers,and as you know css has compatability issues across diff browsers,.also table based designs can be viewed by a larger audience.

 

You can use CSS 'IF' statements to define what code to use for which browser.

 

CSS is the way forward. Tables should only be used for tabular data ;)

Link to comment
Share on other sites

The menu floating to the left is not the issue. Its the footer which is not being sent to the bottom of the menu which is 100% height :(

 

Yeah, but if you float the menu the footer will move below it where you want it.

 

You can't set the menu div to be the same height as the content div by giving it a 100% height in css.

 

:looney:

Link to comment
Share on other sites

fri3ndly its because you have position:absolute; on #main-menu. Take this and height 100% off (i assume your only doing this for the background colour). Then do the col one background as a 1px image repeating down the page on the wrapper, this would give the illusion that col one is 100%. Thats how i would do it :) Hope that makes sense :search:

Link to comment
Share on other sites

Yeah, but if you float the menu the footer will move below it where you want it.

 

You can't set the menu div to be the same height as the content div by giving it a 100% height in css.

 

:looney:

 

Well the menu has a 100% height and it works fine until there is many paragraphs. Thats not the major issue.

 

I have floated the menu left and cleared it above the footer but it still does not appear to be working :(

 

Thanks for you help matey

Link to comment
Share on other sites

fri3ndly its because you have position:absolute; on #main-menu. Take this and height 100% off (i assume your only doing this for the background colour). Then do the col one background as a 1px image repeating down the page on the wrapper, this would give the illusion that col one is 100%. Thats how i would do it :) Hope that makes sense :search:

 

Hi mate

 

The height needs to be 100% because there will be a lot of content varying in height on every page. The position absoulte needs to be set to have the 100% height otherwise the content all displays below the menu

Link to comment
Share on other sites

Nonsense.

 

See:

microsoft.com

bbc.co.uk

 

I dont see how table layouts can be viewed by a larger audience since CSS has been supported since IE4 :)

Well ive known about big dffernces between the way Firefox and IE handles CSS for ages,

an easy example is transparencies ?

I think its all down to choice and taste i have my sites scanned and tested and rarely do i have errors or problems.

anyhow,. an interesting read - http://dwank.blogspot.com/2007/11/web-design-with-tables-or-css-whats.html

Link to comment
Share on other sites

Well ive known about big dffernces between the way Firefox and IE handles CSS for ages,

an easy example is transparencies ?

I think its all down to choice and taste i have my sites scanned and tested and rarely do i have errors or problems.

anyhow,. an interesting read - http://dwank.blogspot.com/2007/11/web-design-with-tables-or-css-whats.html

 

There is a simple PNG fix javascript for that.

 

Yep its all down to choice, but tables is very very old school!

Link to comment
Share on other sites

Well ive known about big dffernces between the way Firefox and IE handles CSS for ages,

an easy example is transparencies ?

 

Bane of our lives. You have to put browser detection in and override your CSS tags. Nightmare. Roll on IE8.

 

Don't talk to me about transparencies at the moment. :mad:

 

IE6 doesn't support transparent PNG so watch that fix also.

Link to comment
Share on other sites

Nonsense.

 

See:

microsoft.com

bbc.co.uk

 

Pete im not having a go fella,but ive checked bbc.co.uk and its full of tables ?

on there home page alone i found 11 tables used to hold certain images etc

am i getting the wrong end of the stick here or what ? i am quite old :)

Link to comment
Share on other sites

Pete im not having a go fella,but ive checked bbc.co.uk and its full of tables ?

on there home page alone i found 11 tables used to hold certain images etc

am i getting the wrong end of the stick here or what ? i am quite old :)

 

Interesting. Their new home page had two small tables and the rest CSS when I viewed it in FF2 just. I wonder if they're doing detection?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.