This is a discussion on "[SOLVED] Dropped Float" within the Starting Out section. This forum, and the thread "[SOLVED] Dropped Float are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Dropped Float
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Dropped Float
When I started my stylesheet, everything was well under control ... then I started trying to fix odd and ends of things ... now my floated sidebar has dropped down below the content div. I have added and deleted so many things to my css as I was tweaking things that I have no idea what caused the div to drop, and I no longer have any idea what attributes are necessary in my styles, and what are superfluous. Could you please tell me what is wrong with my code to cause the sidebar to become misplaced? I feel like I am wandering aimlessly in a sea of code and rules right now.
I can't give you the url because geocities makes everything even worse. I have attached a skeleton of the html code, and my css stylesheet. None of the text has been styled yet. Thanks in advance for any suggestions you might have. Last edited by WebMachine; Nov 26th, 2007 at 00:39. Reason: add html file |
|
|
|
|||
|
Re: Dropped Float
Quote:
|
|
|||
|
Re: Dropped Float
Oh you were sooooooooooooo close! Here is the one piece of css you need to change:
AND by reducing the width of this div to 520px instead of 526px, you now have room for both to sit side by side! |
|
|||
|
Re: Dropped Float
Thanks so much! I guess this gets better with experience, but now it seems like the more I fiddle with my original code, the more I lose track of what some of the positioning attributes are really doing to the page.
Now on to my next problem ... the sidebar is moved up, but I have a 5px tall image of a gradient the same width as the sidebar that I have repeating vertically for the length of the sidebar. This image is to go right up against the right border of the content area, but there is a fairly large gap between the two. I also want to make the sidebar the same length as the content area. Any chance of some help there? |
|
|||
|
Re: Dropped Float
This part in the css:
About making the sidebar longer, this can only be achieved by padding. But let me ask, why? It looks fine the way it is... But, if you insist, try adding this:
Cheers
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Dropped Float
To make two columns the same height NO matter what amount of content is inside is best achieved by the use of "faux columns".
|
|
|||
|
Re: Dropped Float
good lesson, i learn alot from this
who know, maybe one day i will need this |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Slice it, or float it? | Inkers | Web Page Design | 2 | Nov 13th, 2007 18:03 |
| [SOLVED] FF behaving badly. Nav bar dropped by 13px | frinkky | Web Page Design | 3 | Oct 26th, 2007 23:28 |
| [SOLVED] Problem with float - In mozilla | jram | Web Page Design | 4 | Oct 20th, 2007 06:11 |
| Problems with float:left float:right | nvidiajoe | Web Page Design | 8 | Nov 17th, 2006 20:24 |