...

View Full Version : Assistance creating rollover blocks!



ennergi
10-27-2007, 07:09 AM
Hello everyone, I have a fairly basic CSS question to ask, but since I'm new to CSS, I'm a bit stumped. If you check out my blog (http://goblinsatemyblog.com), on the sidebar you'll see that the menu rollovers are green. However, some of the menu blocks drop the sidebar under the menu item a few pixels when you roll over them. If you roll over anything under "cool links", for example, you'll see what I mean. How can I correct that? The CSS is in two files, pasted below. Sorry in advance for all the code; I'm not sure what you would need to see, so I pasted it all (almost). Thanks!


/*---:[ to change the colors of the header and footer... ]:---*/

.custom #header { background: url('images/header.png') no-repeat; height: 445px; width: 100%; text-align: center; margin: 0; }

.custom #footer { background: url('images/footer.png') no-repeat; height: 360px; width: 100%; text-align: center; margin: 0; }

/* .custom #footer { background: url('custom/footer.png') no-repeat; margin-top: 20px; } */

/* .custom #footer { background: #009933; border-top-color: #009933; color: #fff; margin-top: 20px; } */


/*---:[ to change link colors and behaviors... ]:---*/

.custom a { color: #777; }

.custom a:visited { color: #777; }

.custom a:hover { color: #009933; }

/*---:[ site title (logo) in the header ]:---*/

.custom #logo a { color: #fff; font-family: "American Typewriter", "Trebuchet MS", Verdana, sans-serif; }

/*---:[ navigation links in the header ]:---*/

.custom #nav ul li a, .custom #nav ul li a:visited { color: #009933; font-weight: bold; }

.custom #nav ul li a:hover, .custom #nav ul li a.current:hover { color: #fff !important; background: #009933; } /* leave the !important declaration */

.custom #nav ul li a.current, .custom #nav ul li a.current:visited { color: #009933; }

/*---:[ headline link colors on the main page, archive pages, and search pages ]:---*/

.custom h2 a, .custom h2 a:visited { color: #009933; }

.custom h2 a:hover { color: #575757; }

/*---:[ category links located underneath headlines ]:---*/

.custom .post_date a, .custom .post_date a:visited { color: #575757; }

.custom .post_date a:hover { color: #fff; background: #009933; }

/*---:[ link behavior within posts ]:---*/

.custom .entry a, .custom .entry a:visited { border-color: #bbb; }

.custom .entry a:hover { color: #fff; background: #009933; }

/*---:[ link to comments that follows posts on the main page, archive pages, and search pages ]:---*/

.custom .post_meta a:hover { color: #575757; border-color: #009933; }

/*---:[ inter-post navigation (found at the bottom of main pages or at the top of single post pages) ]:---*/

.custom .navigation a:hover { color: #575757; border-color: #009933; }

/*---:[ sidebar link colors ]:---*/

.custom li.widget li a:hover, .custom li.linkcat li a:hover { display: block; padding: 0 0 0 0.3em; color: #fff; background: #009933; }

/*---:[ calendar widget link colors ]:---*/

.custom table#wp-calendar td a, .custom table#wp-calendar td a:visited { color: #009933; }

.custom table#wp-calendar td a:hover { color: #009933; }

/*---:[ comment permalink colors (precedes the commenter's name on each comment) ]:---*/

.custom dl#comment_list dt .comment_num a, .custom dl#comment_list dt .comment_num a:visited { color: #999; }

.custom dl#comment_list dt .comment_num a:hover { color: #009933; }

/*---:[ comment author's link colors ]:---*/

.custom dl#comment_list dt strong a, .custom dl#comment_list dt strong a:visited { color: #575757; border-color: #999; }

.custom dl#comment_list dt strong a:hover { color: #575757; border-color: #009933; }

/*---:[ footer link colors ]:---*/

/*
.custom #footer a, .custom #footer a:visited { color: #009933; border-color: #009933; }

.custom #footer a:hover { color: #009933; border-color: #fff; }
*/


/*---:[ to change all of the gray double-borders in one fell swoop... ]:---*/

.custom .page h1, .custom #sidebar h2, #comments h3.comment_intro, .custom .post_date, .custom .post_meta, .custom .page .entry { border-color: #009933; }


/*---:[ other stuff you may want to change... ]:---*/

/*---:[ headlines ]:---*/

.custom h1, .custom h2, .custom h3, .custom h4 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

.custom h1, .custom h2 { color: #009933; }

.custom .archive h1 { color: #575757; }

.custom #sidebar h2 { color: #575757; }

.custom h3, .custom h4 { color: #575757; }

/*---:[ in-post stuff ]:---*/

.custom blockquote { font-family: Georgia, "Times New Roman", Times, serif; color: #555; border-color: #009933; }

.custom blockquote.right, .custom blockquote.left { border-color: #ccc; } /* These are pullquotes */

.custom code { color: #090; font-family: Courier, "Courier New", monospace; }

.custom .post_date { color: #aaa; }

.custom img.frame { border-color: #009933; }

/*---:[ calendar widget ]:---*/

.custom table#wp-calendar caption { border-color: #ccc; }

.custom table#wp-calendar th { color: #666; border-color: #ccc; }

.custom table#wp-calendar td { color: #999; }

/*---:[ comments ]:---*/

.custom dl#comment_list dt { color: #999; }

.custom dl#comment_list dt strong { color: #575757; } /* Comment author's name */

/*---:[ comment form elements ]:---*/

.custom #comment_form .text_input { color: #009933; font-family: Verdana, sans-serif; border-top-color: #999; border-left-color: #999; border-right-color: #eee; border-bottom-color: #eee; }

.custom #comment_form .text_input:focus { border-top-color: #666; border-left-color: #666; border-right-color: #ddd; border-bottom-color: #ddd; }

.custom #comment_form .form_submit { color: #575757; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; border: 1px; } /* This is the submit button on the comment form */

.custom #comment_form .form_submit:hover { color: #009933; }

/*---:[ search form ]:---*/

.custom #search_form .search_input { color: #777; font-family: Verdana, sans-serif; border-color: #999; border-right-color: #eee; border-bottom-color: #eee; }

.custom #search_form .search_input:focus { border-top-color: #666; border-left-color: #666; border-right-color: #ddd; border-bottom-color: #ddd; }

.custom #nav { position: absolute; top: 1em; right: 1em; }

and the main CSS file...



body { background: #fff; color: #222; font: 62.5% Verdana, sans-serif; }

* { padding: 0; margin: 0; }



/*---:[ global typography elements ]:---*/

a { color: #777; text-decoration: none; }

a:visited { color: #777; text-decoration: none; }

a:hover { color: #009933; text-decoration: none; }

a img { border: none; }

blockquote { margin: 0 0 1.5385em 1.5em; padding: 0 0 0 0.7692em; font-family: Georgia, "Times New Roman", Times, serif; color: #555; border-left: 0.2308em solid #009933; }

abbr, acronym { font-size: 0.8462em; line-height: 1.0em; border-bottom: 1px dotted #999; text-transform: uppercase; letter-spacing: 1px; cursor: help; }

code { color: #090; font-family: Courier, "Courier New", monospace; line-height: 1.0em; }

pre { margin: 0 0 1.5385em 0; padding: 0.7692em; font-size: 1.3em; overflow: auto; background: #ececec; }

p.unstyled { font-size: 1.3em; }

p.center { text-align: center; }



/*---:[ these styles apply to the flickrRSS plugin, which is not yet fully supported ]:---*/

.flickr_blue { color: #007ae4; text-transform: lowercase; }

.flickr_pink { color: #ff2a96; text-transform: lowercase; }



/*---:[ headlines ]:---*/

h1, h2, h3, h4 { font: 1.0em "Helvetica Neue", Helvetica, Arial, sans-serif; }

h1, h2 { font-size: 3.4em; line-height: 1.4286em; letter-spacing: 0px; color: #009933; }

h2 a, h2 a:visited { color: #009933; }

h2 a:hover { color: #575757; }

.page h1 { margin: 0 0 0.6071em 0; border-bottom: 0.10714em solid #ccc; }

.archive h1 { font-size: 2.4em; line-height: 1.66667em; margin: 0 0 1.66667em 0; color: #575757; }

#sidebar h2 { font-size: 2.0em; line-height: 1.5556em; margin: 0 0 0.5em 0; border-bottom: 0.166667em solid #ccc; color: #575757; }

h3 { font-size: 1.3846em; line-height: 1.1111em; color: #575757; }

.entry h3 { margin: 1.6667em 0 0.5556em 0; }

#comments h3 { font-size: 1.8em; }

#comments h3.comment_intro { margin: 0 0 1.11111em 0; padding: 2.05556em 0 0 0; border-top: 0.166667em solid #ccc; }

#comments h3#respond { margin: 2.2222em 0 0 0; }

h4 { font-size: 1.1538em; line-height: 1.3333em; color: #575757; }



/*---:[ core layout elements ]:---*/

/* #header { background: #575757; border-bottom: 0.8em solid #009933; color: #fff; } */

#container { width: 72.8em; margin: 0 auto; }

#content_box { width: 72.8em; }

#content { width: 46.8em; padding: 0 6em 0 0; float: left; }

#sidebar { width: 20em; float: left; }

/* #footer { padding: 1.5em 0; background: #009933; border-top: 0.5em solid #009933; color: #fff; } */



/*---:[ #header styles ]:---*/

#logo { width: 72.8em; margin: 0 auto; }

#logo a { font: normal 5.0em "American Typewriter", "Trebuchet MS", Verdana, sans-serif; color: #fff; }

#logo h1, #logo #tagline { display: none; font: normal 1.6em "Helvetica Neue", Helvetica, Arial, sans-serif; }



/*---:[ nav menu styles ]:---*/

#nav { width: 72.8em; margin: 0 0 50px 0; }

#nav ul { list-style: none; }

#nav ul li { font-size: 2.0em; float: left; }

#nav ul li a, #nav ul li a:visited { display: block; padding: 0.3125em 0.8125em 0.5em 0.8125em; color: #009933; }

#nav ul li a:hover, #nav ul li a.current:hover { color: #fff !important; background: #009933; text-decoration: none !important; }

#nav ul li a.current, #nav ul li a.current:visited { color: #009933; text-decoration: underline; }



/*---:[ content styles ]:---*/

.post_date { font-size: 1.3em; line-height: 1.5455em; margin: 0 0 1.8182em 0; color: #aaa; border-bottom: 3px solid #ccc; }

.post_date a, .post_date a:visited { color: #575757; padding: 0.0909em; }

.post_date a:hover { color: #575757; background: #009933; }

.entry { font-size: 1.3em; line-height: 1.5385em; }

.entry a, .entry a:visited { padding: 1px 0; border-bottom: 1px solid #bbb; }

.entry a:hover { padding: 1px 0; color: #fff; background: #009933; border-bottom: none; }

.entry p { margin: 0 0 1.5385em 0; }

.entry ul, .entry ol { margin: 0 0 1.5385em 3.0em; }

.entry ul { list-style-type: disc; }

.entry li { }

.entry ul li ul, .entry ul li ol, .entry ol li ul, .entry ol li ol { margin: 0 0 0 1.5em; }

.entry dl { margin: 0 0 1.5385em 0; }

.entry dt { font-weight: bold; }

.entry dd { margin: 0 0 0 1.5em; }

.entry sup, .entry sub { line-height: 1.0em; }

.entry blockquote.right, .entry blockquote.left { width: 13.6875em; padding: 0.4375em 0; font-size: 1.2308em; line-height: 1.25em; border: 0.0625em solid #ccc; border-width: 0.0625em 0; text-align: center; }

.entry blockquote.right { margin: 0 0 0 0.9375em; float: right; clear: right; }

.entry blockquote.left { margin: 0 0.9375em 0 0; float: left; clear: left; }

.entry blockquote.right p, .entry blockquote.left p { margin: 0 !important; }

.entry .ad { margin: 0 0 0 1.1538em; float: right; clear: right; }

.entry .ad_left { margin: 0 1.1538em 0 0; float: left; clear: left; }

.entry img { }

.entry img.left { margin: 0 1.1538em 0 0; float: left; clear: left; }

.entry img.right { margin: 0 0 0 1.1538em; float: right; clear: right; }

.entry img.center { display: block; margin: 0 auto 1.5385em auto; clear: both; }

.entry img.frame { padding: 5px; border: 5px solid #009933; }

.entry img.stack { clear: none !important; }

.post_meta { margin: 0 0 4.5385em 0; padding: 0.3846em 0 0 0; border-top: 0.23077em solid #ccc; font-size: 1.3em; line-height: 1.0em; clear: both; }

.add_comment { float: left; padding: 0 0 0.2em 1.6154em; background: url('images/icon_comment.gif') 0 0 no-repeat; font-weight: none; }

.post_meta a:hover { color: #575757; border-bottom: 1px solid #009933; }

.page .entry { margin: 0 0 3.0769em 0; border-bottom: 0.23077em solid #ccc; }

.navigation { width: 39em; margin: 0 0 3.3333em 0; font-size: 1.2em; line-height: 1.6667em; }

.navigation a:hover { color: #575757; border-bottom: 1px solid #009933; }

.next { text-align: right; }



/*---:[ sidebar styles ]:---*/

#rss { width: 20em; height: 190px; margin: 0 0 1.0em 0; background: url('images/rss.png') 50% 0 no-repeat; text-align: center; }

#rss a { display: block; width: 202px; height: 184px; margin: 0 auto; }

ul.sidebar_list { list-style: none; }

ul.sidebar_list li.widget, ul.sidebar_list li.linkcat { width: 16.6667em; margin: 0 0 2.8em 0; font-size: 1.2em; line-height: 1.6667em; float: left; border-bottom: 2px solid #009933; }

li.widget p { margin: 0 0 1.66667em 0; }

li.widget ul, li.linkcat ul { list-style: none; margin: 0 0 0.8333em 0; }

li.widget li, li.linkcat li { padding: 0 1.0em 0 1.16667em; background: url('images/bullet.gif') 0 0.4167em no-repeat; }

li.widget li a:hover, li.linkcat li a:hover { color: #575757; }

/*---:[ special widget styles ]:---*/

#calendar_wrap { width: 16.3333em; margin: 0 0 0.8333em 0; padding: 0 0.166667em; }

table#wp-calendar { width: 16.3333em; border-collapse: collapse; }

table#wp-calendar caption { font-weight: bold; line-height: 1.58333em; border-bottom: 0.08333em solid #ccc; }

table#wp-calendar th { width: 2.3333em; font-size: 1.0em; line-height: 1.58333em; border-bottom: 0.08333em solid #ccc; color: #666; text-align: center; }

table#wp-calendar td { width: 2.3333em; line-height: 1.66667em; color: #999; text-align: center; }

table#wp-calendar td a, table#wp-calendar td a:visited { color: #009933; font-weight: bold; }

table#wp-calendar td a:hover { text-decoration: underline; }

table#wp-calendar td#next, table#wp-calendar td#prev { width: 7.0em; }

/*---:[ the following styles are for the flickrRSS plugin, which is not yet fully supported ]:---*/

li.widget ul.flickr_stream { list-style: none; margin: 0; padding: 0 10px; }

li.widget ul.flickr_stream li { margin: 0; padding: 0 5px 5px 0; display: inline; }

li.widget ul.flickr_stream li a img { padding: 3px; }

li.widget ul.flickr_stream li a:hover img { background: #ff2a96; border-bottom: none; }

ennergi
10-28-2007, 12:44 AM
Does anyone have any idea? :)

Fang
10-28-2007, 07:29 AM
Invalid link



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum