473,808 Members | 2,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE box model problem

Hi,

I've not had many problems with differences between the IE and Firefox
interpretation of the box-model before, but my current site seems to
have the symptoms of being affected by it!

http://www.srcf.ucam.org/~ccw34/index_ff.html

Although I understand how it comes about, I don't fully understand a
couple of the hacks I've read to counter it. I've also read that the
problem was fixed from IE6.0 (although dependent on the Doctype [1]),
but changing the Doctype doesn't seem to make any difference on this
site in IE7.

If anyone can offer any clues in how to fix the problem, I'd be most
grateful.

Thanks,
Chris

1. http://css.maxdesign.com.au/listamat...t-boxmodel.htm
Nov 9 '08
20 1978
On 10 Nov, 23:38, dorayme <doraymeRidT... @optusnet.com.a uwrote:
In article
<7376230b-bb33-4a68-ae5e-1dff53522...@1g 2000prd.googleg roups.com>,

*ChrisW <c.c.w...@gmail .comwrote:
On 10 Nov, 21:29, dorayme <doraymeRidT... @optusnet.com.a uwrote:
Anyway, perhaps start over with simple HTML:

...
ie. removing your <br>s and all the javascript, and complicated CSS
(positioning). And build from here, validating all the way as a check
for yourself.
That's where I started from (and where I start all my websites from,
ever since I taught myself xHTML and CSS (+ PHP / MySQL / XML...)
about 6 years ago). *I've never had to build this precise kind of
layout tho, and was hoping someone might just have a quick tip on
something that I hadn't thought of about things I could change in the
CSS. *I'm not looking for someone to give me the complete answer, but
I might have been a bit narrow minded and not realised of another way
of doing something.

OK, things start simple and later get complicated and problems come up.
But the point I had in mind is that you must be especially careful along
the way from making poor decisions as you build. Why would you insert
double breaks, to take a trivial case that likely has nothing to do with
your immediate concern, in a paragraph instead of simply making more
paragraphs? I was puzzled by why you felt you had to wrap the HI in a
div?

The real point is that if you start and proceed in the *simplest* way,
your immediate concern would be unlikely to arise at all.

--
dorayme
Maybe I should layout my reasoning behind what I've done:

The <h1is for the text, and has a grey border bottom
The <h1container is only there to provide the short, horizontal
length of blue border (under the word 'Hello')
The basicInfoBox contains the text
The border is needed because of the way JQuery creates curved edges
(this effect wouldn't be possible without the extra div) - the h1
overlaps this using z-indexes, to prevent the top border from being
seen

(All of the other divs in the CSS are to do with the menu, and can be
ignored)

I did think that having a div wrapped around the h1 just for the small
horizontal blue line was a bit over the top, but as I said, I couldn't
think of any other way to do it. I did think this may have been part
of my problem, which is why I asked here.

Thanks,
Chris
Nov 11 '08 #11
In article
<1b************ *************** *******@q30g200 0prq.googlegrou ps.com>,
ChrisW <c.******@gmail .comwrote:
On 10 Nov, 23:38, dorayme wrote:
....

OK, things start simple and later get complicated and problems come up.
But the point I had in mind is that you must be especially careful along
the way from making poor decisions as you build. Why would you insert
double breaks, to take a trivial case that likely has nothing to do with
your immediate concern, in a paragraph instead of simply making more
paragraphs? I was puzzled by why you felt you had to wrap the HI in a
div?

The real point is that if you start and proceed in the *simplest* way,
your immediate concern would be unlikely to arise at all.

Maybe I should layout my reasoning behind what I've done:

The <h1is for the text, and has a grey border bottom
The <h1container is only there to provide the short, horizontal
length of blue border (under the word 'Hello')

<http://www.srcf.ucam.o rg/~ccw34/index_ff.html>

Perhaps you mean under the word "Home"?

The basicInfoBox contains the text
The border is needed because of the way JQuery creates curved edges
(this effect wouldn't be possible without the extra div) - the h1
overlaps this using z-indexes, to prevent the top border from being
seen
All questions about curved this or that need to go to out resident expet
on curvature and especially corner-curvature, Nick Coughlin. I don't do
curves, I am a straight up and down with the occasional diagonal sort of
being. I like circles a lot but I use Illustrator for them. <g>

(All of the other divs in the CSS are to do with the menu, and can be
ignored)

I did think that having a div wrapped around the h1 just for the small
horizontal blue line was a bit over the top, but as I said, I couldn't
think of any other way to do it. I did think this may have been part
of my problem, which is why I asked here.
You can get an extra blue lie under one of the words by
<span>word</spanand playing with CSS like

border-bottom: 6px solid #99c;

I will tell you the truth: I really have no firm idea of what look you
actually want. You have provided screenshots that no one would want the
look of but have not provided the actual ideal you want. Draw a pic.

--
dorayme
Nov 11 '08 #12
"dorayme" <do************ @optusnet.com.a uwrote in message
news:do******** *************** ***********@new s-vip.optusnet.co m.au...
All questions about curved this or that need to go to out resident expet
on curvature and especially corner-curvature, Nick Coughlin. I don't do
curves, I am a straight up and down with the occasional diagonal sort of
being. I like circles a lot but I use Illustrator for them. <g>
*ding*

Did someone page me? What's going on here then?

Nov 11 '08 #13
In article <gf**********@r egistered.motza rella.org>,
"Nik Coughlin" <nr******@gmail .comwrote:
"dorayme" <do************ @optusnet.com.a uwrote in message
news:do******** *************** ***********@new s-vip.optusnet.co m.au...
All questions about curved this or that need to go to our resident expert
on curvature and especially corner-curvature, Nick Coughlin...

*ding*

Did someone page me? What's going on here then?
I think a rounded corner box, among other things and issues, is being
attempted at:

http://www.srcf.ucam.org/~ccw34/index_ff.html

--
dorayme
Nov 11 '08 #14

"dorayme" <do************ @optusnet.com.a uwrote in message
news:do******** *************** ***********@new s-vip.optusnet.co m.au...
In article <gf**********@r egistered.motza rella.org>,
"Nik Coughlin" <nr******@gmail .comwrote:
>"dorayme" <do************ @optusnet.com.a uwrote in message
news:do******* *************** ************@ne ws-vip.optusnet.co m.au...
All questions about curved this or that need to go to our resident
expert
on curvature and especially corner-curvature, Nick Coughlin...

*ding*

Did someone page me? What's going on here then?

I think a rounded corner box, among other things and issues, is being
attempted at:

http://www.srcf.ucam.org/~ccw34/index_ff.html
Oh I see.

Using the OP's jq.corners (don't like them personally, no antialiasing and
using the parent + padding to provide a border is nasty):
http://nrkn.com/temp/roundyround/jq.corner.html

Using CSS3:
http://nrkn.com/temp/roundyround/index.html

Using images:
http://nrkn.com/temp/roundyround/images.html

The last breaks in IE6 or lower. It can be fixed and I have done so in the
past but I can't be bothered determining what bug it is, sorry, but Google
will help you here.

Nov 11 '08 #15
On 11 Nov, 04:31, "Nik Coughlin" <nrkn....@gmail .comwrote:
"dorayme" <doraymeRidT... @optusnet.com.a uwrote in message

news:do******** *************** ***********@new s-vip.optusnet.co m.au...
In article <gfaomn$qc...@r egistered.motza rella.org>,
"Nik Coughlin" <nrkn....@gmail .comwrote:
"dorayme" <doraymeRidT... @optusnet.com.a uwrote in message
news:do******* *************** ************@ne ws-vip.optusnet.co m.au...
All questions about curved this or that need to go to our resident
expert
on curvature and especially corner-curvature, Nick Coughlin...
*ding*
Did someone page me? *What's going on here then?
I think a rounded corner box, among other things and issues, is being
attempted at:
http://www.srcf.ucam.org/~ccw34/index_ff.html

Oh I see.

Using the OP's jq.corners (don't like them personally, no antialiasing and
using the parent + padding to provide a border is nasty):http://nrkn.com/temp/roundyround/jq.corner.html

Using CSS3:http://nrkn.com/temp/roundyround/index.html

Using images:http://nrkn.com/temp/roundyround/images.html

The last breaks in IE6 or lower. *It can be fixed and I have done so inthe
past but I can't be bothered determining what bug it is, sorry, but Google
will help you here.
Excellent, thanks very much - that's exactly what I wanted! :) thanks
for the advice about padding.

I'm not sure I like JQuery either, but I didn't particularly want to
create images - I wasn't aware that you could do the effect in CSS3.
Nov 11 '08 #16
"ChrisW" <c.******@gmail .comwrote in message
news:85******** *************** ***********@k1g 2000prb.googleg roups.com...
On 11 Nov, 04:31, "Nik Coughlin" <nrkn....@gmail .comwrote:
"dorayme" <doraymeRidT... @optusnet.com.a uwrote in message
I think a rounded corner box, among other things and issues, is being
attempted at:
>
http://www.srcf.ucam.org/~ccw34/index_ff.html
Oh I see.

Using the OP's jq.corners (don't like them personally, no antialiasing
and using the parent + padding to provide a border is nasty):
http://nrkn.com/temp/roundyround/jq.corner.html

Using CSS3:
http://nrkn.com/temp/roundyround/index.html

Using images:
http://nrkn.com/temp/roundyround/images.html

Excellent, thanks very much - that's exactly what I wanted! :) thanks
for the advice about padding.

I'm not sure I like JQuery either, but I didn't particularly want to
create images - I wasn't aware that you could do the effect in CSS3.
Remember that by using CSS3 you're leaving IE out in the cold (though it
does degrade gracefully). Opera too at the moment, they've been talking
about rounded corners for a while now but still no sign. Also, since 9.23
they've been introducing rendering errors and not fixing them :| some stuff
with nesting position: absolute/relative is very broken. Pity, at one point
the rendering in Opera was second to none.

As for jQuery, I love it! Just not so fond of that rounded corner plugin.
There
are much nicer ways to do rounded corners without using images for browsers
that don't support border-radius than how that plugin does it. Also, a lot
of
those rounded corner tricks seem to ignore borders or have some flaky way of
doing it.

Given my fondness for jQuery, I may just have to roll one myself... I'm so
busy though, I doubt I'll find time :|

Nov 11 '08 #17

"Nik Coughlin" <nr******@gmail .comwrote in message
news:gf******** **@registered.m otzarella.org.. .
>"ChrisW" <c.******@gmail .comwrote in message
news:85******* *************** ************@k1 g2000prb.google groups.com...
On 11 Nov, 04:31, "Nik Coughlin" <nrkn....@gmail .comwrote:
"dorayme" <doraymeRidT... @optusnet.com.a uwrote in message

I think a rounded corner box, among other things and issues, is being
attempted at:

http://www.srcf.ucam.org/~ccw34/index_ff.html
This looks good (haven't tried it though):
http://www.curvycorners.net/

Nov 11 '08 #18
In article <gf**********@r egistered.motza rella.org>,
"Nik Coughlin" <nr******@gmail .comwrote:
"Nik Coughlin" <nr******@gmail .comwrote in message
news:gf******** **@registered.m otzarella.org.. .
"ChrisW" <c.******@gmail .comwrote in message
news:85******** *************** ***********@k1g 2000prb.googleg roups.com...
On 11 Nov, 04:31, "Nik Coughlin" <nrkn....@gmail .comwrote:
"dorayme" <doraymeRidT... @optusnet.com.a uwrote in message

I think a rounded corner box, among other things and issues, is being
attempted at:
>
http://www.srcf.ucam.org/~ccw34/index_ff.html

This looks good (haven't tried it though):
http://www.curvycorners.net/
Instead of their demo.html, perhaps this might be better (you never know
what bad practices their code will encourage!):

<http://dorayme.890m.co m/alt/curvyCorners.ht ml>

--
dorayme
Nov 11 '08 #19
On 11 Nov, 20:59, "Nik Coughlin" <nrkn....@gmail .comwrote:
"ChrisW" <c.c.w...@gmail .comwrote in message
news:85******** *************** ***********@k1g 2000prb.googleg roups.com...
On 11 Nov, 04:31, "Nik Coughlin" <nrkn....@gmail .comwrote:
"dorayme" <doraymeRidT... @optusnet.com.a uwrote in message
I think a rounded corner box, among other things and issues, is being
attempted at:
http://www.srcf.ucam.org/~ccw34/index_ff.html
Oh I see.
Using the OP's jq.corners (don't like them personally, no antialiasing
and using the parent + padding to provide a border is nasty):
>http://nrkn.com/temp/roundyround/jq.corner.html
Using CSS3:
>http://nrkn.com/temp/roundyround/index.html
Using images:
>http://nrkn.com/temp/roundyround/images.html
Excellent, thanks very much - that's exactly what I wanted! :) thanks
for the advice about padding.
I'm not sure I like JQuery either, but I didn't particularly want to
create images - I wasn't aware that you could do the effect in CSS3.

Remember that by using CSS3 you're leaving IE out in the cold (though it
does degrade gracefully). *Opera too at the moment, they've been talking
about rounded corners for a while now but still no sign. *Also, since 9..23
they've been introducing rendering errors and not fixing them :| some stuff
with nesting position: absolute/relative is very broken. *Pity, at one point
the rendering in Opera was second to none.

As for jQuery, I love it! *Just not so fond of that rounded corner plugin.
There
are much nicer ways to do rounded corners without using images for browsers
that don't support border-radius than how that plugin does it. *Also, alot
of
those rounded corner tricks seem to ignore borders or have some flaky wayof
doing it.

Given my fondness for jQuery, I may just have to roll one myself... I'm so
busy though, I doubt I'll find time :|
Thanks for this info - it's very interesting :)
Nov 12 '08 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3313
by: Iain Bishop | last post by:
I'm trying to model objects for the following problem: A building site contains assemblies, each of which can contain other assemblies and/or materials. I have modelled this using a Site class, Assembly class, and Material class as follows... Site Class (clsSite): Option Explicit
0
2150
by: Flare | last post by:
Hi I tring to implement a model 2 architecture in a new test JSP site for my own training. I read this article http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html It suggests that I in my controlling servlet use at Command Pattern to control the flow instead of if-else. Sounds great. The patten is examplified in section 4.6 and 4.7
34
7120
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. Yensao
10
7192
by: Michael Strorm | last post by:
Hi! I've been having problems with a DTD. Having had the Sun XML validator reject a document, I put it through 'xmllint' for more information. 'Xmllint' noted a problem with the DTD itself; "validity error : Content model of section is not determinist: (text , (list , text)* , list?)" Here's a very simplified version of the DTD demonstrating the problem:-
19
2367
by: Steve Jorgensen | last post by:
I've run across this issue several times of late, and I've never come up with a satisfactory answer to the best way to handle this schema issue. You have a large section of schema in which a subset of records across all tables is often considered a separate logical system, but sometimes may be treaded ar part of the global system, and there is not simply a 1-m-m... tree among the records in a logical database. Here's an example. A...
5
2258
by: clintonG | last post by:
I'm looking for documentation and would not turn my nose up to any code from anybody who thinks they are good at the design of an algorythm that can be used to generated a hierarchical relational data model. What? A Yahoo-like drill-down menu that is a series of categories and nested categories is a hierarchical relational data model. An example can be seen at but the review of the query string values strongly indicates
6
4621
by: Robert W. | last post by:
I'm building my first major C# program and am try to use best practices everywhere. So I've implemented the "Document/View Model" whereby: - There's a Windows Form, which we'll call "formView" - There's a Class, which we'll call "classDocument" Thus, when an instance of each the form and the class are instantiated, they each will hold the same data, albeit be independent of each other. To keep the two in perfect sync with each other,...
1
3400
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is comprised of a DataGrid may have separate permissions for adding, deleting and updating a news item. Problem Up until now, I have been implementing security directly inside the control. I will test directly against the security model to see if...
122
7460
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection outside of that class. This structured way allows visual tools to host components, and allows programmers to build applications and libraries visually in a RAD environment. The Java language has JavaBeans as its component model which allows Java...
1
2676
by: Alex Vinokur | last post by:
Hi, I have compilation problem on SUN CC compiler with template while using option -m64 (64-bit addressing model). No problem while using option -m32 (32-bit addressing model) $ CC -V CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10631
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.