div "covering" other areas in FF

This is a discussion on "div "covering" other areas in FF" within the Web Page Design section. This forum, and the thread "div "covering" other areas in FF are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 22nd, 2007, 19:03
New Member
Join Date: Feb 2007
Location: ferf
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
div "covering" other areas in FF

I'm having problems with a div that I move using position:relative. For some reason it "blocks" areas straight over it on the page, diabling mouseover there, and making buttons unclickable. The problems only appear vertically aligned to the div in question.

http://www.virtualfeed.com/index.php

The div in question is the "Hjälp pussa..."-comment box. It's tagged #kommentar.

Here is the css-file:

http://www.virtualfeed.com/mall.css

Rembember, only in FF. IE is fine.

Any help greatly appreciated. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 22nd, 2007, 20:19
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div "covering" other areas in FF

Did you try adding clear: both;
to the div

Code: Select all
#kommentar {
position:relative;
top:-190px;
left:88px;
width:190px;
height:80px;
clear: both;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 22nd, 2007, 23:10
New Member
Join Date: Feb 2007
Location: ferf
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div "covering" other areas in FF

That worked wonderfully, thanks!

Do you know why it was needed?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 22nd, 2007, 23:26
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div "covering" other areas in FF

I actually do know why it worked. Shocking!

Your div above is floated. The clear prevents the div below it from wrapping around the div above. The cleared element drops below the bottom of the floated element.
Since that element above is floated left, you probably could have used
clear: left; (clear left prevents a following element from wrapping around a left floated element.)(Clear right prevents an element from wrapping around a right floated element)
But in my limited experience, I don't take a chance, I just clear both!

Glad it worked!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 23rd, 2007, 02:58
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div "covering" other areas in FF

Haha, left and right for clears are very useful once in a while, but I usually do a clear: both; even if I'm only clearing one side.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 23rd, 2007, 09:27
New Member
Join Date: Feb 2007
Location: ferf
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div "covering" other areas in FF

Ok, I understand. Thanks for all help and explanation!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, div, firefox

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a "tag" system to find relevant "related" pages MrQuestions PHP Forum 3 Mar 20th, 2008 23:06
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 Oct 16th, 2007 01:22
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Starting Out 6 Aug 8th, 2007 13:48
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 17th, 2007 23:09
Need to build a "Trip" or "Journey Planner" jswebdev PHP Forum 4 Dec 5th, 2005 23:22


All times are GMT. The time now is 13:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42