This is a discussion on "css positioning" within the Web Page Design section. This forum, and the thread "css positioning are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
css positioning
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
css positioning
Salutations,
I`ve got a main div with a sidebar div on the right. When there`s not enough content in the main div, the content from the sidebar goes under the main, instead of staying on the right. Is there an easy way to keep this from happening? (Other than inventing new content... Maybe I should have posted this in my last css thread; the stylesheet can be seen there... |
|
|
|
|||
|
Re: css positioning
Here`s the css:
|
|
|||
|
Re: css positioning
got a link so we can see what you mean...
jus got back from work n my brain functions like windows on a good day (bad....) lol |
|
|||
|
Re: css positioning
I`ll try to make a screen shot and get back to you; it`s not a url yet...
|
|
|||
|
Re: css positioning
Ok, so...hope you can see...
|
|
|||
|
Re: css positioning
Put all the menu items in one div, have that div float left.
But its kinda hard to tell without seeing any html code... |
|
|||
|
Re: css positioning
Thanks Phoenix. The menu items are all in one div, so I`ll try the float left suggestion. I`ll be back with the html if I have trouble; I`m extremely new to all this...
|
|
|||
|
Re: css positioning
Thanks herkalees, sounds good. I`ll post back to let y`all know how it went...
|
|
|||
|
Re: css positioning
Well, I tried both suggestions, and unfortunately I`m still not happy (sorry). I`m probably not doing it right. I found the float suggestion worked, but it didn`t look as good to me as having the sidebar on the right. And I think I`m not using the correct numbers for the margin suggestion, because the result was the same, more or less. Thought I had understood, but...
I think I`ll finish the rest of the pages on the site, then load it all up. There are other issues I need help with anyway, and then y`all can see what the heck I`m doing! Or trying to do, anyway... I`ll be baaaack! |
|
|||
|
Re: css positioning
gives us html, or give us liberty!
|
|
||||
|
Re: css positioning
Quote:
Try this: <html> <div id="main">some content</div> <div id="side">side content</div> </html> CSS: #main {margin-right:175px; float:left;} #side {width:175px;} |
|
|||
|
Re: css positioning
Thanks herkalees; lemme get back to ya on that.
|
|
|||
|
Re: css positioning
I`d really appreciate any help; here`s the html so far-
Can anyone help? |
|
|||
|
Re: css positioning
Well, never mind; after adding decorative hor. lines (found out how- hr), it didn`t look good, so I solved the problem by adding an appropriate image to the content. But thanks for your earlier suggestions, Phoenix and herkalees
|
![]() |
| Tags |
| css, positioning |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Positioning between <h3> | konnor5092 | Web Page Design | 3 | Sep 11th, 2007 22:37 |
| CSS and positioning | djme | Web Page Design | 6 | Feb 3rd, 2006 13:27 |
| Positioning with CSS | Tino | Web Page Design | 8 | Jan 21st, 2006 15:45 |
| Positioning with css | Hub | Web Page Design | 12 | Dec 13th, 2005 19:45 |
| div positioning | benbacardi | Web Page Design | 10 | May 24th, 2004 12:25 |