/    Sign up×
Community /Pin to ProfileBookmark

hovering problem

This is my layout [url]http://anime.nxserve.net/[/url] . On IE7 when you hover the #bar links it does not show me a white background. I don’t know if this does the same to IE6. It works perfectly fine on Firefox 3

[CODE]body {
margin-top: 0px;
margin-bottom: 0px;
background-image: url(images/bg.jpg);
background-repeat: repeat-x;
font-family: Arial, Helvetica, sans-serif;
background-color: #DF375A;
}

#wrapper {
width: 970px;
margin-right: auto;
margin-left: auto;
background-color: #FFFFFF;
overflow: hidden;
}

#header {
background-image: url(images/header.jpg);
height: 165px;
width: 970px;
}

#banner {
background-color: #FFFFFF;
height: 60px;
width: 468px;
border: 1px solid #000000;
position: relative;
top: 9px;
left: 494px;
}

#bar {
background-image: url(images/bar.jpg);
height: 35px;
width: 969px;
font-size: 12px;
text-align: right;
line-height: 35px;
border-right-width: 1px;
border-right-style: solid;
}

#bar a {
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
float: right;
padding-right: 12px;
padding-left: 12px;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #FFFFFF;
}

#bar a:hover {
color: #DF375A;
background-color: #FFFFFF;
line-height: 35px;
}

#content {
background-color: #FFFFFF;
width: 550px;
float: left;
font-size: 12px;
padding: 10px;
}

#content h2 {
margin: 0px;
}

.entry a , .postmetadata a, h2 a , #commentform a , #content li a {
color: #DF375A;
text-decoration: none;
}

.entry a:hover , .postmetadata a:hover , h2 a:hover, #commentform a:hover , #content li a:hover {
color: #FFFFFF;
background-color: #DF375A;
}

#sidebar {
width: 400px;
float: right;
background-color: #FFFFFF;
font-size: 12px;
}

#sidebar a {
color: #DF375A;
text-decoration: none;
}

#sidebar a:hover {
color: #FFFFFF;
background-color: #DF375A;
}

#sidebar h2 {
font-size: 14px;
font-weight: bold;
background-color: #DF375A;
background-image: url(images/tile.jpg);
background-repeat: repeat;
color: #FFFFFF;
padding: 5px;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 10px;
margin-left: 0px;
}

li {
list-style-type: none;
}

li li {
margin: 0px;
}

ul {
list-style-type: none;
padding: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 5px;
}

.commentlist {
padding: 0px;
}

h3 {
font-size: 12px;
}

#left, #right {
width: 190px;
float: left;
padding: 5px;
}

#footer {
width: 960px;
float: left;
font-size: 12px;
padding: 5px;
text-align: center;
color: #FFFFFF;
background-color: #000000;
}

#footer a {
color: #FFFFFF;
}

#footer a:hover {
color: #DF375A;
}

#search {
width: 400px;
padding-top: 10px;
padding-left: 5px;
}

#latest {
height: 200px;
width: 970px;
}

#latest h2 {
font-size: 14px;
line-height: 30px;
background-image: url(images/button.jpg);
font-weight: bold;
color: #FFFFFF;
margin-bottom: 5px;
}

#latest a {
color: #DF375A;
text-decoration: none;
}

#latest a:hover {
color: #FFFFFF;
background-color: #DF375A;
}

#latest li {
margin: 0px;
padding: 0px;
}

#episode {
float: left;
width: 465px;
font-size: 12px;

}

#series {
float: right;
width: 465px;
font-size: 12px;
}

#box {
padding: 5px;
height: 100px;
width: 390px;
font-size: 12px;
border: 1px solid #FF0000;
}

input {
border: 1px solid #DF375A;
color: #DF375A;
background-color: #FFFFFF;
}

#comment {
border: 1px solid #DF375A;
width: 100%;
}

.postmetadata {
background-color: #FFECEC;
padding: 5px;
}

small {
font-size: 12px;
}

.navigation {
width: 100%;
height: 28px;
}

.navigation a {
color: #FFFFFF;
font-weight: bold;
text-decoration: none;
}

.alignleft {
float: left;
background-color: #FFECEC;
width: 200px;
background-image: url(images/previous.gif);
height: 28px;
color: #FFFFFF;
text-align: center;
line-height: 28px;
}

.alignright {
float: right;
background-color: #FFECEC;
width: 200px;
background-image: url(images/next.gif);
height: 28px;
color: #FFFFFF;
text-align: center;
line-height: 28px;
}

#html {
width: 100%;
}

#html input {
width: 100%;
color: #000000;
}

#adbox {
width: 390px;
height: 125px;
margin-top: 10px;
}

#box_01, #box_02, #box_03 {
background-color: #000000;
height: 125px;
width: 125px;
float: left;
margin-left: 5px;
}

#column_01 img, #column_02 img, #column_03 img {
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
margin: 10px;
}

div#column_01 {
float: left;
clear: none;
width: 170px;
padding-right: 10px;
text-align: center;
}

div#column_02 {
float: left;
clear: none;
width: 170px;
padding-left: 10px;
text-align: center;
}
div#column_03 {
float: right;
clear: none;
width: 170px;
text-align: center;
}

#column_01 h3, #column_02 h3, #column_03 h3{
padding: 3px;
text-align: center;
background-color: #DF375A;
margin: 0px;
}

#column_01 h3 a, #column_02 h3 a, #column_03 h3 a {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}

#column_01 h3 a:hover, #column_02 h3 a:hover, #column_03 h3 a:hover {
color: #DF375A;
background-color: #FFFFFF;
display: block;
}
[/CODE]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 03.2009 — #bar a:hover {[COLOR="Blue"]display:block;[/COLOR]
color: #DF375A;
background-color: #FFFFFF;
line-height: 35px;
}
Copy linkTweet thisAlerts:
@KorJan 03.2009 — rather:
<i>
</i>#bar a {
[COLOR="Blue"]display:block;[/COLOR]
float: right;
...
}

As you want a link to behavior like a [B]block[/B] element - I see you need a [I]float:right[/I] there - (by default a link is an [B]inline[/B] display element and can not be floated), you should set it to act so.
×

Success!

Help @Ruriko spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...