This is a discussion on "2 questions - expanding content and display in FF, IE" within the Web Page Design section. This forum, and the thread "2 questions - expanding content and display in FF, IE are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
2 questions - expanding content and display in FF, IE
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
2 questions - expanding content and display in FF, IE
Hello again. I have 2 issues preventing me from making progress with a site. Both hopefully quite basic.
The first is.. how do you get 2 div's (left and right content for example) to expand together? So if there is more content on the left the right also expands and vice versa. ![]() Second query is a display difference in IE and Firefox. I have a wrapper containing the divs left and right content, so when content is added to left or right, the wrapper expands also. This is shown correctly when I preview in IE.... ![]() However in firefox, the wrapper doesn't expand when the content does..... ![]() Hope you can help! Thanks |
|
#2
|
|||
|
|||
|
Re: 2 questions - expanding content and display in FF, IE
Your last question is easy for me. If you have a footer div, then add this code to the css:
So if you don't have a footer use this code after the floated columns: #clear {clear:both} Two divs (left and right) can't expand the same amount... One technique to use to fake it is called 'faux columns'. You use a background image behind the columns in the container div for instance. Google that term and you'll see what I mean! |
|
#3
|
||||
|
||||
|
Re: 2 questions - expanding content and display in FF, IE
Sorry Lchad, I think he means two <div>'s extending to the height of the container they're in. This is not normally possible in CSS. A Google search of Faux Columns will get you the information you need to pseudo-acheive the effect you're after. As for the dynamically adjusting content; this is definitely not possible with CSS. CSS is an exact science, so to speak. It's something where you can control what you want and let the rest follow basic rules. Don't get me wrong, CSS is far more powerful than tables and (X)HTML, but you can't expect the same things from the pair.
|
|
#4
|
|||
|
|||
|
Re: 2 questions - expanding content and display in FF, IE
Yeah that's what I meant Ryan, probably didn't explain it correctly.
|
|
#5
|
|||
|
|||
|
Re: 2 questions - expanding content and display in FF, IE
Quote:
This is the code I have....
|
|
#6
|
|||
|
|||
|
Re: 2 questions - expanding content and display in FF, IE
You only need the clear:both in the footer. Delete the others.
|
|
#7
|
|||
|
|||
|
Re: 2 questions - expanding content and display in FF, IE
still not working in firefox!
|
|
#8
|
|||
|
|||
|
Re: 2 questions - expanding content and display in FF, IE
Try this it worked for me.
|
|
#9
|
|||
|
|||
|
Re: 2 questions - expanding content and display in FF, IE
Still no luck unfortunately. I'll just keep removing stuff until I found out where its tripping up.
|
![]() |
| Tags |
| expand firefox ie |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How are some websites capable to display javascript content? | gurukhel | JavaScript Forum | 3 | Nov 9th, 2007 21:19 |
| CSS Links - Display All Content In One Div (Like Frames) | weasel | Web Page Design | 1 | Oct 27th, 2007 05:19 |
| display alternative content | welshstew | Classic ASP | 1 | May 10th, 2007 16:35 |
| content area not expanding | Lchad | Web Page Design | 19 | Jan 29th, 2007 15:45 |
| How to make an element display above a dynamic content? | wood_flower | Web Page Design | 4 | Aug 3rd, 2005 04:42 |