Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-23-2012, 02:24 PM   PM User | #1
mikehende
Regular Coder

 
Join Date: Nov 2010
Posts: 295
Thanks: 105
Thanked 0 Times in 0 Posts
mikehende is an unknown quantity at this point
Need help styling charity site please?

Hey guys, here's our Charity site:

http://silent-angels.net/


I had 6 pages in the Nav bar all evenly spread out with equal distance between each page name, now I added a 7th page [Success Stories] and this automatically added a second row, I tried adjusting the margin and padding values but not getting all 7 pages to fit horizontally in one line in the Nav bar, please see CSS code below, any help will be greatly appreciated, thanks.
Code:
body {
background: #acacac; /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2FjYWNhYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjMwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,  #acacac 0%, #ffffff 30%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#acacac), color-stop(30%,#ffffff), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #acacac 0%,#ffffff 30%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #acacac 0%,#ffffff 30%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #acacac 0%,#ffffff 30%,#ffffff 100%); /* IE10+ */
background: linear-gradient(top,  #acacac 0%,#ffffff 30%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#acacac', endColorstr='#ffffff',GradientType=0 ); /* IE6-8 */
}



#img2 {float: right;}


a:link {
color: #00f;
}
a:visited {
color: #00f;
}
a:hover {
color: #00f;
}
a:active {
color: #00f;
}

#header2 {border-style: solid;
                  text-align: center;
                  background-color: #3A3737 ;
}
            
#header2 ul {margin: 0;
                      padding: 0;
                      
  }



#header2 ul li a { text-decoration: none;
                            color: #F1E9E9;
                           padding: .25em 0; 
}

#header2 ul li a:hover {color: #FFF;
                                     background-color: #FF6600;
}

.clear { clear: both; 
}

#header2 ul {
list-style-image: url('images/dot.gif');
list-style-position: inside;
}

#header2 li {
float: left;
padding: 8px 16px 8px 8px;
}

#header2 li {width: 14%;
}

#img1 { float:left; margin-left:100px; }
#img2 { float:right; margin-right:100px; }
#img_logo { display:block; margin:0 auto; }

#mainContent {border-style: solid;
                         border-width: thick;
                         width: 730px;
                         text-align: left;
                         float: left;
                         padding:10px;
                                           
}

#video {
  /* float: right;  remove this */
  display:  inline-block;
}

#wrapper {
    width: 1250px;     
}

#wrapper { margin: 0 auto; }

#leftSidebar {
    margin-top: 12px;
}

#mainContent {
    margin-top: 12px;
}

#video {
             margin-top: 5px;
             border-style: solid;
             border-width: thick;
             width:360px;
             height: 348;
}

#rightSidebar {
    margin-top: 12px;
}

#leftSidebar {float: left;
                      width: 220px;
                      
}

#rightSidebar {float: right;
                       width:  230px;
 }

form { border: 3px solid #cc3300; }
          padding: 1px;
          color: #FFFFFF;
 }

#signUpForm {
font-size: 11px;
font-family: helvetica, sans-serif;
}

#footer {text-align: center; 
             color: #000; 
             padding: 8px 16px 8px 8px;
             clear: both;
}

.blue { color: blue;
             font-weight:bold;
 }

.galleryrow {
    clear: both;
}
.galleryimage {
    float: left;
    margin: 0 8px 16px;
    width: 150px;
}
.galleryimage p {
    margin: 8px 0;
    text-align:center;
}
mikehende is offline   Reply With Quote
Old 03-23-2012, 03:30 PM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Well a quick fix would be change your header2 li width.

Change:

Code:
#header2 li {width: 14%;
}
To

Code:
#header2 li {
    width: 150px;
}
Of course if you end up adding more menu items, you'll need to adjust that px setting.
__________________
Teed

Last edited by teedoff; 03-23-2012 at 04:06 PM..
teedoff is offline   Reply With Quote
Old 03-23-2012, 03:58 PM   PM User | #3
mikehende
Regular Coder

 
Join Date: Nov 2010
Posts: 295
Thanks: 105
Thanked 0 Times in 0 Posts
mikehende is an unknown quantity at this point
Thank you very much! I have a few other styling to do on the new page, shall I post all questions here in this one thread or create new threads for each question?
mikehende is offline   Reply With Quote
Old 03-23-2012, 04:03 PM   PM User | #4
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
If they're different issues, a new thread might be best. Guess it really doesn't matter though.
__________________
Teed
teedoff is offline   Reply With Quote
Old 03-23-2012, 05:07 PM   PM User | #5
mikehende
Regular Coder

 
Join Date: Nov 2010
Posts: 295
Thanks: 105
Thanked 0 Times in 0 Posts
mikehende is an unknown quantity at this point
I think better I keep all things related to the site styling in one thread for future reference. Ok, please see this site here:

http://www.wishuponahero.com/browsewish/?sort=all

On our site, I created another page titled "Success Stories", I wish to use this page to post all causes we have helped in the past and wish to do listing in the same fashion as in the site above. What I am thinking is simply create a heading with the name of the cause eg. "Shane's Brain Surgery" then add a few lines of text below explaining Shane's predicament then use the [more] link to open up more text explaining how we were able to help Shane. I can create and style the Heading and text but how is the link to open up more paragraphs by clicking on the word "more" done please?

Or if anyone has a better idea, I'm all ears?
mikehende is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:15 PM.


Advertisement
Log in to turn off these ads.