It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

Length of the page

Length of the page

Postby Danthon on Wed Jan 07, 2009 12:47 pm

After some years form the creation of my internet site I have decided to correct a little paging problem that i left unresolved for a lot of time (one time it wasn't so important...).

The site is created in xhtml e css and the problem is to equalize the length of the page (pratically the height) for all the browser, to better manage the space for the advertising banner.

I have tried to divide the page in variuos div setting the various heights with height and min-height but I can't make it uniform for a problem of the paypal cart code, I think.

I have tried to insert the central column in a table setting the height of the td but the problem stay.

For better understaning the problem I inserted an adsense banner on the right: if you open the page with firefox and then with explorer you will see that the end of this banner finish next to a different text line in the central column, and this make me difficult to manage the space in the bottom.

If you can help me to get, pace after pace, an optimal solution fully compatible with all the browser, that doesn't use hack and is validated in Wc3, I would be very grateful to you.

This is the address of a sample page:

http://www.idee-regalo.biz/cosa-regalare.html

Thank you all.

__________________
You have never see gift for him like these? (originelle geschenke on german)
Last edited by Danthon on Mon Sep 14, 2009 12:16 pm, edited 1 time in total.
Danthon
 
Posts: 8
Joined: Thu Aug 14, 2008 11:22 pm

Re: Length of the page

Postby dflynn on Thu Jan 08, 2009 6:27 am

Because every browser has a different default setting for html tags your page is naturally doomed to look slightly different amongst different browsers.
You can get around this with what is called a CSS Reset.
Possibly the most popular one can be found here:
http://meyerweb.com/eric/thoughts/2007/ ... -reloaded/

When you link to your CSS, first link to the CSS RESET. It will wipe the defaults of the user's browser and give you full control over how your website will be displayed.

There is a catch. You will have to start using CSS to define things like Line-height:; and add padding to almost everything such as in tables.
There are many new CSS commands to use because normally Browser defaults are acceptable.

However it is wel worth doing if you really want the unity.
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada

Re: Length of the page

Postby Danthon on Thu Jan 08, 2009 9:12 pm

i go to try
meanwhile thanks
bye
Danthon
 
Posts: 8
Joined: Thu Aug 14, 2008 11:22 pm


Who is online

Users browsing this forum: No registered users and 0 guests