Div box problem

This is a discussion on "Div box problem" within the Web Page Design section. This forum, and the thread "Div box problem are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 5th, 2006, 19:27
Junior Member
Join Date: Aug 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Div box problem

I am having problem with my div boxes. Looks good with IE but if my boxes have js in it, then looks really bad in firefox. The url is http://www.pembis.com/ if you check the right part of the website where there is poll and on right side there is adsense box, you can see what i am talking about. How can i make them look good as in IE please?
Reply With Quote

  #2 (permalink)  
Old Feb 6th, 2006, 04:14
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Div box problem

While it might be a lot of work on my end to provide a solution, I can only suggest that you temporarily forget about how it looks in Internet Explorer and actually take some time making it look right in Firefox.

Then you (with our assistance) tweak the code to bring it back to a nice appearance in Internet Explorer.

I know this is the opposite of what you've done, but believe me, it's likely to be easier, since Firefox does a near perfect job of rendering code, and Internet Explorer doesn't.
Reply With Quote
  #3 (permalink)  
Old Feb 7th, 2006, 10:07
Junior Member
Join Date: Aug 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div box problem

This is the box i use
Code: Select all
.box {
 width:18em; font-size:10px;
 border:3px #EFD0F9 dashed;  
 text-align:left;
    background-color : #F3F3F3;
 margin:0px 0px 10px 6px;
 padding:5px;
}
as a newbie can you help me to make a good box that would fit both browers?
Reply With Quote
  #4 (permalink)  
Old Feb 7th, 2006, 10:57
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div box problem

Herk, I'm confused. I was working on a layout yesterday using pure css (no frames/tables) and it seemed to me that FF 1.5 was adding to box size when it got padding/margins, while IE6 was behaving correctly (as I understand the standards), i.e. taking such things from the box size instead of adding to it.

Quote:
The box width is given by the sum of the left and right margins, border, and padding, and the content width. The height is given by the sum of the top and bottom margins, border, and padding, and the content height.
from W3D CSS2 specs

The standard wisdom in various articles is just the opposite. Herlp!
Reply With Quote
Reply

Tags
div, box, problem

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
First image problem and inline list problem konnor5092 Web Page Design 8 Dec 1st, 2007 09:08


All times are GMT. The time now is 03:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43