Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 11-08-2008, 08:41 AM Positioning divs
Junior Talker

Posts: 2
Name: Rakesh
Trades: 0
Hello World! I have to apologise in advance as I have little knowledge about divs' and CSS positioning techniques so I might ask a lot of questions! I have built websites in the past but have relied solely on tables for layout but I think I'm ready for change now... I'm having some trouble trying to position a couple of divs in the right places and I have no idea how to solve this.

Here is the page I am working on: http://tester45.co.cc/

and here is my stylesheet: http://tester45.co.cc/style.css

One of the problems is that the sidebar seems to be out of position in IE7 (probably all the versions of IE too - I've only checked the site on IE7 and FF3). It seems like #leftside is positioned inside of #container and I'm not sure why.

Another problem is the footer... I have to scroll down to see it and I do understand it is because I have set #container to a 100% height and the footer is outside of the container, but when I try to put it in the container, the footer ends up just underneath the last line of contents - this is fine if the content reaches or exceeds the height of the browser but when it doesn't, #footer doesn't stay at the bottom of the page. I've tried the 'bottom: 0; position: absolute;' method but this doesn't work if the browser is resized

Any help would be great.
rkesh45 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-08-2008, 12:02 PM Re: Positioning divs
Webtechi's Avatar
Novice Talker

Posts: 6
Name: Danny
Trades: 0
maybe try
in your footer tag

position: relative;
bottom: 30px
Webtechi is offline
Reply With Quote
View Public Profile
 
Old 11-08-2008, 12:59 PM Re: Positioning divs
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
For the sidebar problem, put all your content in a container div that specifies 100% width. If that skews things too much in the other browsers, put that rule in conditional comments just for IE.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 11-08-2008, 04:48 PM Re: Positioning divs
Junior Talker

Posts: 2
Name: Rakesh
Trades: 0
Quote:
Originally Posted by Webtechi View Post
maybe try
in your footer tag

position: relative;
bottom: 30px
Thank you!! This works - it does hide the last line of the content in the container when it exceeds the browser height but I'm happy to use line breaks

Quote:
Originally Posted by serandfae View Post
For the sidebar problem, put all your content in a container div that specifies 100% width. If that skews things too much in the other browsers, put that rule in conditional comments just for IE.
I don't understand - put all the content (sidebar + container + footer) into another container? Also, I have no idea how conditional comments work! but, I will look into it.

EDIT: I think the sidebar problem is solved - I added left:0 to #leftside and it seems to have done the trick. Just got to test on other browsers...

Last edited by rkesh45; 11-09-2008 at 07:55 AM..
rkesh45 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Positioning divs
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19069 seconds with 12 queries