| Rob Meade 2006-07-26, 7:26 pm |
| "Mike Brind" wrote...
> Set all margins, paddings and borders to 0 to start, then as you add
> 10px padding here, compensate by removing 10px width from your div
> there...
Thanks for the advice, the problem with the example I've posted the code up
for is that, unless I make the items in the container use it seems at least
5px less, it just doesn't work, either I get no border at the top on the
left (roughly the first paragraph of text), or, none at the bottom, to get
both I seem to have to make the contained items considerably less than the
container width?
> It can get a bit frustrating to see overlapping divs,
init!
> or the right hand
> one popping under the left hand one, but eventually you get the hang of
> it. Trial and Error. Get your hands dirty. Just like ASP/ADO/SQL.
yeah...I guess, just was hoping for quicker results....
> Oh, and check your results in both Firefox *and* IE. They implement
> the CSS box model differently.
deffo - I work for the NHS, which is where these templates will be used, our
Trust (organisation) has the luxury of being Microsoft only, so I know that
people will only be using Internet Explorer, and version 5+, HOWEVER - we
also make community wide applications using similar templates which are then
used by GP practices and other Trusts, whilst the NHS as a whole does have
an agreement with Microsoft thus we get lots of goodies for free, there are
still some users out there - I'm sure you know the ones - that like to
fiddle - as such we've had reports from users that our applications do not
work correctly in FireFox (especially the .Net ones) - I am trying to
appease all here by developing the templates to work correctly with FireFox,
and then AFTERWARDS checking them in IE, as opposed to the other way round
which was always the mindset in the past. I figure if I get it right for
FireFox my code should be "correct" (I'm validating via W3C etc) - but at
the end of the day, the bulk of the users are all IE users so if there are
any things I just cant work out I'll obviously have to favour them....this
has been a good exercise though because not only have I started creating
Server Controls in .Net (something new for me) - I've started using the DIV
tags (something new for me) - and have seen the size of my pages reduce
quite a bit (by 2 thirds on one of the pages!)...
It's just a shame that now, after the W3C has been around so long that all
of the browsers haven't adapted the same consistant use of the standards, it
would make things so much easier for us as developers, and thus have a big
advantage to users, as it wouldn't matter which browser they used they could
be assured of the same results, browsers would then compete on features..
Regards
Rob
|