hi, i get a scrollbar on my navigation menu "contact" button im not sure why any help greatly appreciated. thanks. derek
here is the site im talking about. http://academyoftalent.com
here is the full css.
Code:
@charset "utf-8";
/* CSS Document */
* {
margin: 0;
padding: 0;
}
/* CSS RESET EVERYTHING */
body {
padding: 0;
background-color: #333333;
font-family: "Times New Roman", Times, serif;
}
#wrapper {
overflow: auto;
margin: 50px auto 20px auto;
width: 888px;
}
#header {
margin: 0 auto 0 auto;
width: 888px;
height: 113px;
background: url(off_slices3/images/header_new.png) no-repeat;
}
#navigation {
margin: 0 auto 1px auto;
width: 888px;
height: 43px;
padding: 0px;
}
#content {
width: 888px;
background: url(off_slices3/images/front_background_text_09.png) no-repeat;
padding-top:0px;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
#animation {
width: 500px;
height: 340px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
#callnow {
width: 400px;
color: white;
text-align: center;
margin-top: 240px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
#footer {
width: 888px;
color: white;
text-align: center;
clear: both;
margin-top: 75px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
#footer a:link , #footer a:visited {
text-decoration: none;
color: pink;
}
#footer a:active, #footer a:hover {
text-decoration: none;
color: black;
}
/***********************************about us code***************************/
p{margin: 0;} /*resetting default margins and padding to zero on all main page elements including the p tag*/
#about_content {
margin: 0 auto 0 auto;
width: 888px;
background: url(about_us/images/about_us_03.png) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
#about_us_footer_img {
margin: 0 auto 0 auto;
width: 888px;
height: 55px;
background: url(about_us/images/footer1.png) no-repeat;
padding-top: 10px;
clear:both;
}
#about_footer {
width: 888px;
color: white;
text-align: center;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
clear:both;
}
#about_footer a:link , #about_footer a:visited {
text-decoration: none;
color: pink;
}
#about_footer a:active, #about_footer a:hover {
text-decoration: none;
color: white;
}
#about_text {
width: 600px;
color: black;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
height: 700px;
}
#about_text p {
text-indent: 20px;
padding: 20px;
}
#about_wrapper {
overflow: auto;
margin: 50px auto 0 auto;
width: 888px;
}
#about_logo {
margin: 0 50px; auto 0;
float: right;
height: 200px;
width: 130px;
background: url(logos/LOGO_pink.png) no-repeat;
}
/*************************************gallery code**************************/
#gallery_wrapper {
overflow: auto;
margin: 50px auto 0 auto;
width: 888px;
}
#gallery_content {
margin: 0 auto 0 auto;
width: 888px;
height: 400px;
background: url(gallery/gallery.png) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
.gallery_links {
float: left;
margin: 40px auto 0 40px;
width: 100px;
color: white;
}
.gallery_links a:link , .gallery_links a:visited {
text-decoration: none;
color: white;
}
.gallery_links a:hover , .gallery_links a:active {
text-decoration: none;
color: red;
}
/********************************videos code****************************/
.video_page_label {
float: left;
width: 150px;
color: white;
clear: none;
margin-top: 50px;
margin-right: auto;
margin-bottom: 0;
margin-left: 50px;
}
#video_content {
margin: 0 auto 0 auto;
width: 888px;
height: 700px;
background: url(video/videos.png) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
.videos {
float: left;
margin-top: 30px;
margin-left: 10px;
width: 280px;
}
.video_desc {
float: left;
width: 280px;
color: black;
text-align: center;
padding-top: 20px;
}
#toplinks {
font-weight:bold;
width:530px;
height: 25px;
float:left;
margin-top: 55px;
margin-right: 20px;
margin-bottom: 0;
margin-left: 0;
text-align: center;
clear: both;
}
#toplinks ul {
list-style-type:none;
margin:0;
padding:0;
}
#toplinks ul li {
display:inline;
margin:0 3px;
line-height:1.5em;
}
#toplinks ul li a:link, #toplinks ul li a:visited {
color:#fff;
text-decoration:none;
height:1.8em;
}
#toplinks ul li a:hover, #toplinks ul li a:active{
color:#59B942;
text-decoration:none;
}
#video_container {
margin: 0 auto 0 auto;
width: 888px;
clear: both;
}
/******************************images code ****************************************/
#images_content {
overflow: auto;
margin: 0 auto 0 auto;
width: 888px;
background: url(music_school_imgs/images.png) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
.imgwrapper {
width:800px;
height: 100px;
margin-top: 30px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
clear: both;
}
.img
{
float: left;
margin-right: 10px;
border: 1px solid #C88A37;
/* height: 105px;
width: 135px; */ /* dont set div sizes when you want to fit your image perfectly tightly */
text-align: center;
display: inline;
margin-bottom: 20px;
}
.img img
{
/* margin: 0 auto 0 auto;*/ /*not needed*/
/* display:block; */ /*suggested but not needed*/
/*margin: 5px;*/ /* popped out my images */
border: 1px solid #C88A37;
}
.img a:hover img
{
border: 1px solid #C88A37;
}
#our_students {
float: left;
width: 200px;
color: white;
text-align: center;
margin-top: 50px;
margin-right: auto;
margin-bottom: 50px;
margin-left: 100px;
}
/***********************************department code*************************/
#department_content {
margin: 0 auto 0 auto;
width: 888px;
background: url(department/department.png) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
.department_text {
width: 600px;
color: black;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
padding: 20px;
line-height: 160%;
}
/********************************classes_prices code**************************/
#classes_prices_content {
margin: 0 auto 0 auto;
width: 888px;
background: url(classes_prices/classes_prices.png) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
.classes_prices_text {
width: 600px;
color: black;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
padding: 20px;
line-height: 160%;
}
.classes_prices_text h4 {text-decoration:underline;}
/************************************contact us code*********************************/
#contact_us_info {
float: left;
margin-top: 50px;
margin-left: 50px;
width: 400px;
text-align: center;
}
#contact_us_content {
margin: 0 auto 0 auto;
width: 888px;
height: 550px;
background: url(contact_us/contact_us_03.jpg) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
#contactform {
margin-left: 50px;
width: 60%;
float:left;
margin-top: 50px;
}
.contact
{ margin-bottom: 10px;
}
label { display: block; width: 6em; float: left; } /**align form code*/
/****************************faculty code *********************************/
#faculty_content {
overflow: auto;
margin: 0 auto 0 auto;
width: 888px;
background: url(faculty/images1/faculty_03.png) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
.faculty_text {
width: 600px;
color: black;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 50px;
line-height: 160%;
padding-bottom: 40px;
padding-top: 20px;
padding-right: 20px;
padding-left: 20px;
}
.faculty_links_text {
width: 600px;
color: black;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 50px;
line-height: 160%;
padding-bottom: 40px;
padding-top: 20px;
padding-right: 20px;
padding-left: 20px;
font-size: 10pt;
}
.faculty_links_text a:link , .faculty_links_text a:visited {
color: black;
text-decoration: none;
}
.faculty_links_text a:hover, .facutly_links_text a:active {
color: white;
text-decoration: none;
}
/**************************faculty descriptions code************************/
.faculty_description {
width: 500px;
color: black;
margin-top: 20px;
margin-right: 20px;
margin-bottom: 0px;
margin-left: 35px;
line-height: 160%;
padding-bottom: 40px;
padding-top: 20px;
padding-right: 20px;
padding-left: 20px;
}
.faculty_description p {
text-indent: 20px;
}
/************************************songs code******************************/
#songs_content {
margin: 0 auto 0 auto;
width: 888px;
height: 700px;
background: url(songs/songs_03.png) no-repeat;
background-color: #F7B9ED;
padding-top: 100px;
}
.song_container {
float: left;
width: 144px;
margin-left: 30px;
margin-bottom: 20px;
}
.song_desc {
margin: 0 auto 0 auto;
width: 144px;
text-align: center;
}
.song_desc p {
padding: 10px;
}
#song_wait {
float: left;
margin-left: 50px;
width: 300px;
margin-bottom: 50px;
}
/******************************art students images********************/
#student_images {
float: left;
width: 450px;
clear: both;
margin-top: 40px;
margin-right: auto;
margin-bottom: 40px;
margin-left: 50px;
}
.art {
float: left;
margin: 20px auto 20px 20px;
width: 100px;
}
#students_text {
float: left;
margin: 0 auto 0 25px;
width: 200px;
text-align: center;
clear: both;
}
Last edited by silverglade; 09-04-2009 at 02:09 PM..
|