HTML/CSS and firefox 3.6.10

bhupendra2895

New Member
Messages
554
Reaction score
20
Points
0
Hi,

In firefox 3.6.10(in ubuntu) html code below renders two links (test 1 and test 2)
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
.ads_{
    text-align: center;
    background-color: #eeeeee;
    border-color: #dedede;
    border-width: thin;
    border-style: solid;
    padding: 4px;
}
</style>
<title>Home</title>
</head>
<body>
<div class="ads_">
<a href="">Test 1</a><br/><a href="">Test 2</a><br/></div>
        
<p class="ads_"><a href="">Test 1</a><br/><a href="">Test 2</a><br/></p>
</body></html>
But html code below does not.
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
.ads{
    text-align: center;
    background-color: #eeeeee;
    border-color: #dedede;
    border-width: thin;
    border-style: solid;
    padding: 4px;
}
</style>
<title>Home</title>
</head>
<body>
<div class="ads">
<a href="">Test 1</a><br/><a href="">Test 2</a><br/></div>
        
<p class="ads"><a href="">Test 1</a><br/><a href="">Test 2</a><br/></p>
</body></html>
I am not able to understand reason behind it, I guess this due to some bug in firefox, because google chrome renders both code properly.

Please help me to know the actual reason behind it.
 
Last edited:

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Are you using an ad blocker add-on such as Adblock Plus? Adblock Plus filters all divs and classes containing the word ad in it and it probably didn't catch it with the underscore there.

Both codes are working fine for me in Firefox 3.6.10 as well as Firefox 4.0b6.
 
Last edited:

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
In top code change ==>.abs_<== to ==>.bob<== X3
In bottom code change ==>.abs<== to ==>.bob<== X3

then they both are the same and work in ubuntu's - firexox/chromium/opera

It dose not like you to use '.abs'
which '.abs_' is not like it
 

bhupendra2895

New Member
Messages
554
Reaction score
20
Points
0
Are you using an ad blocker add-on such as Adblock Plus? Adblock Plus filters all divs and classes containing the word ad in it and it probably didn't catch it with the underscore there.

Both codes are working fine for me in Firefox 3.6.10 as well as Firefox 4.0b6.

Yes I am using adblock plus, thanks for helping.
 
Top