A few css questions.
March 26, 2013 - 12:25am — Hadou
Blah,
I have a few little questions regarding css, and codes and what not,
alrighty, questions number 1~
I can't seem to center the 'hover' box in this code? it's positioned center, and all, so I'm not sure whats wrong cx
this is the code [minus the *s];
<*style*>a.info { position:center; z-index:24; text-decoration:none } a.info:hover { z-index:25;} a.info span { display: none; } a.info:hover span { display:block; top:1em; width:250px; color: #9E9E9E; border: dashed 1px #9E9E9E; background:#0D0D0D; text-align: center; padding: 0px; }<*/style*>
link to the bio it's used in here.
question number 2~
I'd like to know if there is a code for a picture that changes on roller over/hover to another,
I know how to do this in dreamweaver... but I have no idea how the code works cx
so if someone could show me, or link me to a blog or site that could that would be awesome
thank you for reading c; <3
Q1: "position:center" is not
"position:center" is not a valid declaration. If you want to center the hover box, add "margin:auto" to "a.info span".
Q2:
I recently explained this one on another blog. Hope that helps you as well.