War Room

Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 07-06-2009, 12:00 AM   #1
Aspiring to be WebMaster
 
tuldok's Avatar
 
Join Date: Apr 2008
Location: Cavite Philippines
Posts: 40
Thanks: 6
Thanked 1 Time in 1 Post
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Yahoo to tuldok Send a message via Skype™ to tuldok
Default div layout

hi warriors,

ive got a little problem on my layout.. i plan to put the footer on absolute bottom regardless of the window size of the explorer in which i did place it correctly, but my problem is it overflows the content area if you resize it to a smaller resolution..

next is can i set the maximum resolution of the window to fit the entire website incase of resizing it to a larger resolution..


thanks in advance warriors..


jay
tuldok is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-06-2009, 12:04 AM   #2
Active Warrior
 
Join Date: Jun 2009
Posts: 37
Thanks: 2
Thanked 0 Times in 0 Posts
Default Re: div layout

if you want to make your webpage suitable with all resolution . you cannot use example like this
<table width = "100px"

you must use like this

<table width = "100%"

so its will auto resize with the resolution
hotscode is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-06-2009, 12:20 AM   #3
Aspiring to be WebMaster
 
tuldok's Avatar
 
Join Date: Apr 2008
Location: Cavite Philippines
Posts: 40
Thanks: 6
Thanked 1 Time in 1 Post
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Yahoo to tuldok Send a message via Skype™ to tuldok
Default Re: div layout

but i use div.. and i already use the percentage size.. how about the vertical fit?
tuldok is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-06-2009, 03:15 AM   #4
B.W
Warrior Member
 
Join Date: Jul 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: div layout

Working with percentage based layouts is not always practical. If you use a percentage based layouts, then you should at least apply a min-width and a max-width.

What you want to do, is not natively supported in the browsers. So you would either want to revert to older standards (table based), or fake it by positioning the backgrounds. One way of doing this, can be seen in the Equal Height Columns + header and footer example at Brugbart.

If what you want is a sticky footer, then position it absolutely towards the bottom, with a div placed (static or relative) right after the content, of same height as that of the footer. This would make sure that the content doesn't get hidden beneath the footer, and still allow the footer to roll along with the content, as it gets longer. Be sure to apply position relative, to the containing element of the footer, otherwise it just sticks to the root element, rather then the containing element.

The final method floats a div to either of the sides, of about 1px width, with a min-height of 100%. This should then in turn push the footer at place, when the content isn't long enough.


Its however messy no matter how you put it, and a stunt like that, is better pulled with a table based layout, at least when you got multiple columns.
B.W is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-06-2009, 10:21 AM   #5
Aspiring to be WebMaster
 
tuldok's Avatar
 
Join Date: Apr 2008
Location: Cavite Philippines
Posts: 40
Thanks: 6
Thanked 1 Time in 1 Post
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Yahoo to tuldok Send a message via Skype™ to tuldok
Default Re: div layout

thank you for your responses..
tuldok is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-07-2009, 12:21 AM   #6
Active Warrior
 
David0022's Avatar
 
Join Date: Sep 2007
Location: Japan
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: div layout

Creating a sticky footer with CSS is tricky and can cause unexpected results in different browsers. If you really want a sticky footer, follow B.W.'s advice and use a table.

I sometimes use a table as my "pagewrap" and then within the table layout my website with CSS. It's not the most "pure CSS" solution, but it will work.

I hope this helps,
-David

Visit my blog:
>> Newbie Website Design <<
David0022 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-08-2009, 11:23 AM   #7
Warrior Member
 
Join Date: Jul 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Social Networking View Member's Twitter Profile 
Default Re: div layout

Personally I prefer the footer at the bottom of the page content not the bottom of the browser, especially on short pages. I frequently use a tablet pc in portrait orientation which means if I were to have my browser full height would be 1400px. A big cap between the bottom of the content and the footer would look really silly.

Remember that the web is not print and you should go with web conventions which means the footer at the end of the content not the bottom of the browser.
cdwise is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-08-2009, 04:26 PM   #8
HyperActive Warrior
War Room Member
 
HomeBizNizz's Avatar
 
Join Date: Jul 2009
Posts: 295
Thanks: 124
Thanked 20 Times in 20 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: div layout

Tried "Reset CSS" first...?
Just google: Reset CSS
It will overwrite the default CSS settings in the browsers
and even the playing field out a bit between browsers.

And with each reinstall with WinXP comes the dreaded IE6...

HomeBizNizz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
absolute bottom, div, layout

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 03:45 PM.