This is a discussion on "[SOLVED] simple div problem" within the Web Page Design section. This forum, and the thread "[SOLVED] simple div problem are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] simple div problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] simple div problem
Hi, I am currently updating an existing subsite for my company which I did not originally make.
I have mainly just changed the css but in order to apply a white border around the site I have added two new divs. IE displays the site fine but in Firefox the border around the container div stops just below the banner instead of encompassing the site. This is no doubt a very simple problem but one I am unable to fix so any help would be greatly appreciated. The link is http://interactive-learning.info/productstest/ Cheers |
|
|
|
||||
|
Re: simple div problem
Add this to your CSS;
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: simple div problem
Thank you, you're an absolute star!
|
|
||||
|
Re: [SOLVED] simple div problem
aso,
Do you mind explaining quite what the content:'.'; bit is all about?
__________________
Resources Administrator
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
||||
|
Re: [SOLVED] simple div problem
This technique enables designers to clear floats without having to add unnecessary source markup.
The :after pseudo allows content to be inserted after the element in question. Although IE does not understand it, we needn't worry since IE clears floats by itself anyway (incorrectly). The content is simply a dot (.), which is then hidden and set to display:block. However, the important line is clear:both. This clears any floats within the element itself, forcing it to fully encase them. Full details of solution: Clearing floats without source markup. Details of :after pseudo at W3Schools.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
||||
|
Re: [SOLVED] simple div problem
Thanks Alex, all sorted. What an amazingly easy method
__________________
Resources Administrator
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] simple layout problem | saltedm8 | Web Page Design | 13 | May 2nd, 2008 18:02 |
| [SOLVED] Simple Php Code Problem | longstand | PHP Forum | 3 | Oct 17th, 2007 21:02 |
| Simple Problem Please Help! | bthomson82 | JavaScript Forum | 3 | Jun 22nd, 2007 02:59 |
| Really simple positioning problem :( | camcool21 | Web Page Design | 4 | Dec 30th, 2006 18:25 |
| (hopefully) simple navigation problem | edd_jedi | Web Page Design | 3 | Jul 26th, 2006 15:06 |