4 replies [Last post]
billythekid
Offline
Regular
Last seen: 17 years 9 weeks ago
Joined: 2005-11-26
Posts: 14
Points: 0

Hello

I have a site here www.eyeball-surfcheck.co.uk.

It is made of CSS and the CSS has been validated.

The may notice that the pages stretche quite far, this is because the container div is set to around 4000 pixels. I had it at 100% but found that it didn't stretch and the side columns stopped at a certian height and the content div kepted stretching because it had content to push it down.

As far as I can see the container div should stretch, but it didn't and have found that setting the height to 4000 pixels is the only thing I can do.

When the container div was set to height=100% the scroll bars on Safari Mac wouldn't show so the site wasn't useable.

So, if anyone has any ideas I would love to hear about it!

Thanks

Matt

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 14 years 1 week ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

Site check please - container stretch issue(s)

Valid CSS only goes as far the validity of your html.

This is my big chance . . . yep, I blew it . . .

Anonymous
Anonymous's picture
Guru

Site check please - container stretch issue(s)

n8gz4ez wrote:
Valid CSS only goes as far the validity of your html.
I agree 100%. Some of your tags don't even exist and you have a doctype in the middle of your page (one that doesn't apply to html or xhtml).

Sorry that I have to do this but "validate first, then ask". Smile

http
http's picture
Offline
Regular
Last seen: 17 years 13 weeks ago
Joined: 2005-10-29
Posts: 13
Points: 0

Site check please - container stretch issue(s)

Your validation may confuse you - you'll need to take out the XML WAP section and put it in a separate file.

(I think the PHP virtual doesn't work - if I'm wrong and you are OK with your PHP programming you can require the same php information into your WAP card and web site by creating a seperate PHP file with just the info. Otherwise use a .wml file and enter the information in twice.

To use PHP , it can't be a WML file, therefore it needs a name other than index.php. E.g. WAP users go to http://www.eyeball-surfcheck.co.uk/wap.php

Whichever, it needs to come out of the http site. )

As far as the CSS goes, it's quite difficult to advise on a site that uses tables and CSS. You really shouldn't be giving the page a height. It should automatically define it's own height. If you fancy more work I'd try to remove all tables from the site.

Looking into Faux columns may help. If you set up faux columns (google) the page would finish after the content without setting a page height, even when you change the content.

You should also look into StickyFooter for a number of sites that show how to create a footer that goes along the bottom of the page.

Lastly, advise your client to move to Cornwall as there are no clean breaks in Devon.

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 4 years 12 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

Re: Site check please - container stretch issue(s)

http wrote:
To use PHP , it can't be a WML file, therefore it needs a name other than index.php.

Hi

That isn't strictly true.

If you have access to the server system configuration files, you can set the php parser to parse any file you like. Clearly, the more filetypes you specify, if the majority don't have php in, the slower the server responses are. If, on the other hand, all YOUR wml files have php in, go ahead and alter the parser file settings.

It is in the apache httpd.conf file, in this line:

AddType application/x-httpd-php .php

where yours would be:

AddType application/x-httpd-php .php .wml

Trevor