Topic: Rollover problems in IE and centering problems Mozilla (Page 1 of 1) |
|
|---|---|
|
Nervous Wreck (II) Inmate From: Perth, Western Austrlia |
posted 04-28-2006 07:10
Hi all, |
|
Obsessive-Compulsive (I) Inmate From: |
posted 04-29-2006 04:06
From what I understand, a standards compliant browser will center with code: foo {
margin-left: auto;
margin-right: auto;
}where foo is your div/whatever |
|
Nervous Wreck (II) Inmate From: Perth, Western Austrlia |
posted 04-29-2006 07:48
Ok fixed the centering problem it turns out i have the margin properties on the wrong DIV (thanks chex, you made me check again), but my rollovers still dont. HELP!!! |
|
Obsessive-Compulsive (I) Inmate From: |
posted 04-30-2006 02:04
Do you mean the section "our services link" where firefox doesn't change the link color on hover, but IE does? code: .inlinelink {
color:#ffffff;
background-color:#cc0000;
}
.inlinelink:hover {
color:#0000ff;
background-color:#ff0000;
}I'm not really sure how the pseudo-element :link takes precedent over setting 'a' without a pseudo element. I modified the above style to include :link and now it looks like it's working: code: .inlinelink:link, .inlinelink {
color:#ffffff;
background-color:#cccc00;
text-decoration:none;
}
.inlinelink:hover {
color:#0000ff;
background-color:#ff0000;
}
code: #content a, #content a:visited {
color: rgb(0,0,128);
text-decoration:none;
}
#content a:hover {
color: rgb(0,0,255);
text-decoration:underline;
}Here's a few links that might interest you: check out listamatic and selectorial http://css.maxdesign.com.au/index.htm |
|
Nervous Wreck (II) Inmate From: Perth, Western Austrlia |
posted 04-30-2006 02:49
Hi Chex, |
|
Nervous Wreck (II) Inmate From: |
posted 04-30-2006 04:07
First, ditch the img tags, make the navigation a list and make the anchors the lowest element. code: <ul id="top_box_right"> <li id="home_button"><a href="index.php?">Home</a></li> <li id="about_button"><a href="index.php?">About</a></div> <li id="services_button"><a href="index.php?">Services</a></div> <li id="portfolio_button"><a href="index.php?">Portfolio</a></div> <li id="contact_button"><a href="index.php?">Contact Button</a></div> <li id="privacy_button"><a href="index.php?">Privacy Button</a></div> </ul>
code: #top_box_right {
list-style:none;
float:right;
}
#top_box_right li {
float:left;
}
#top_box_right li a {
text-transform:lowercase;
font: 0.8em Arial,Helvetica,sans;
color: #fff;
background: transparent url("/path/to/hover.state") 0 0 no-repeat;
width:84px;
height:67px;
}
#top_box_right li a:link, #top_box_right li a:visited {
background-image: url("/path/to/normal.state");
}
|
|
Nervous Wreck (II) Inmate From: Perth, Western Austrlia |
posted 04-30-2006 11:20
Ok, as per divinechaos's suggestion and after a bit of reading i changed the nav to a ul, now my rollovers work... well kinda, now they arent aligning with the top of the ul, again only in IE. |
|
Nervous Wreck (II) Inmate From: Perth, Western Austrlia |
posted 05-01-2006 01:50
thank you all, |