CSS Center Align
Posted: Sun May 15, 2011 9:13 pm
Okay, here is the dilemma. I have this div element, an error. Well...a response. When the response is shown using jQuery, it will come from the top of the webpage, and disappear after 5 seconds. I have it at the top, but I want it to be dead in the center, but have it where when users with different screen resolutions can also see it in the center. Here is my CSS code for the entire thing:
Any help would be greatly appreciated.
Code: Select all
#response {
-moz-border-radius-bottomleft:6px;
-moz-border-radius-bottomright:6px;
-webkit-border-bottom-left-radius:6px;
-webkit-border-bottom-right-radius:6px;
width:220px; padding:5px;
text-align:center;
position:absolute;
left:??;
top:0;
}