Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Border and IE

Reply
Thread Tools

Border and IE

 
 
Samuel van Laere
Guest
Posts: n/a
 
      02-21-2007
Just wondering about something really minor,
if its fixable i'll fix it, else: couldn't care less
Here's the page:
http://www.oukje.nl/gastenboeklezen.php
Notice the difference between IE and Geckobrowsers,
for some reason IE won't display the right double border.

Anyone with a fix? (one that doesn't resolve to hacking CSS, perhaps?)

Cheers,
Sam


 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      02-23-2007
Scripsit Samuel van Laere:

> Just wondering about something really minor,
> if its fixable i'll fix it, else: couldn't care less
> Here's the page:
> http://www.oukje.nl/gastenboeklezen.php
> Notice the difference between IE and Geckobrowsers,
> for some reason IE won't display the right double border.


The "double border" here refers to the visual impression created by the
border of a table together with the borders of the cells, when there's a
small gap (due to browser defaults).

The problem seems to be in this rule in your gastenboek.css file:

#divboek span.marker {
color: #000000;
float: right;
font-weight: bold;
margin-left: 5px;
margin-top: 2px;
padding: 1px;
width: 100%;
}

If you remove the lines
float: right;
width: 100%
then the "double border" appears on the right. Making spans float often
causes problems. I don't quite see what you are aiming at with that rule, so
I won't make a specific suggestion on how to fix it. Wy don't you just use
<div> instead of <span>, without float or width in CSS but with some rule
that suppresses vertical margins for <p>?

P.S. Use the W3C CSS Checker; you have a syntax error in your style sheet
(probably unrelated to the problem at hand, but still).

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
Samuel van Laere
Guest
Posts: n/a
 
      02-24-2007
"Jukka K. Korpela" <> schreef in bericht
news_DDh.1010$ ...
>
> If you remove the lines
> float: right;
> width: 100%
> then the "double border" appears on the right. Making spans float often
> causes problems. I don't quite see what you are aiming at with that rule,
> so I won't make a specific suggestion on how to fix it. Wy don't you just
> use <div> instead of <span>, without float or width in CSS but with some
> rule that suppresses vertical margins for <p>?
>


You found the problem and a solution to, thats just great.
Here's what I did to fix it:

#divboek span.marker {
color: #000000;
float: left;
font-weight: bold;
margin-left: 0px;
margin-top: 2px;
padding: 1px;
}

Gave me the same effect with even lesser rules )

> P.S. Use the W3C CSS Checker; you have a syntax error in your style sheet
> (probably unrelated to the problem at hand, but still).


Thanks Jukka, i've fixed two errors.


 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
border-color: #003366; border-width: 2px; =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= HTML 64 07-30-2006 04:01 PM
Drop Down List Border Width vs Text Box Border Width Coder ASP .Net 1 06-24-2006 01:27 PM
row bottom border in inner table not matching up with row border in outer table phl HTML 1 06-08-2006 03:43 PM
Datagrid Border showing when I say no border tshad ASP .Net 0 01-31-2005 05:40 PM
datagrid and border-collapse:collapse style Vaclav Jedlicka ASP .Net 1 06-30-2003 03:31 AM



Advertisments
 



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 44 45 46 47 48 49 50 51 52 53 54 55 56 57