Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

CSS (minor help)

This is a discussion on "CSS (minor help)" within the Web Page Design section. This forum, and the thread "CSS (minor help) are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 5th, 2006, 21:32
New Member
Join Date: Sep 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
CSS (minor help)

Hi guys,

got the following css code that works fine, but i just dont to seem to able to have a space betweeh each sub-menu title. i.e.

Main-menu Ttitle: INFO
Sub-menu Title: About us
Job Oppertunites

what i want is space between "About us" and "Job Oppertunities". How do i do this?

PHP: Select all

<style type="text/css"


#nav, #nav ul { /* all lists */ 
    
padding0
    
margin:0
    list-
stylenone
    
line-height1


#nav a { 
    
displayblock;/*display sub below main menu*/ 
    
width8em


#nav li { /* all list items */ 
    
floatright
    
width6em
     


#nav li ul { /* second-level lists */ 
    
positionabsolute/*hide sub content, display whem mouse over*/ 
    
backgroundtransparant
    
width7em
    
font-size:12px
    list-
style-typenone
    
left: -999em
     


#nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */ 
    
leftauto


#content { 
    
clearleft


cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Sep 5th, 2006, 22:36
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS (minor help)

It would be helpful to see the html markup but I'm guessing you need to apply; margin-bottom or padding-bottom somewhere.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 6th, 2006, 00:24
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS (minor help)

You shouldn't be using ems for widths unless your intending for an elastic layout. If anything, use em for text size, but not block elements.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 6th, 2006, 18:17
New Member
Join Date: Sep 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS (minor help)

thanks for the help guys. Indeed the solution was with the padding, but after having fixed that i am having another problem here. when i move mu mouse over the drop down menu it disappears after reaching half of the menu. here is the link to see for yourself www.webdelux.co.uk

PHP: Select all

 
<style type="text/css">

#nav, #nav ul { /* all lists */
 
margin:0;
 list-
stylenone;
 
line-height1;
}
#nav a {
 
displayblock;/*display sub below main menu*/
 
width9em;
 
padding:3px;
}
#nav li { /* all list items */
 
floatright;
 
width6em;
 
 
}
#nav li ul { /* second-level lists */
 
positionabsolute/*hide sub content, display whem mouse over*/ 
 
width9em;
 
font-size:12px;
 list-
style-typenone;
 
left: -999em;
 
}
#nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
 
leftauto;
 
}
#content {
 
clearleft;
}
</
style>
 
 
 
 
<
table align="center" width="796"  background="toph3.jpg" cellspacing="0" border="0">
  <!--
DWLayoutTable-->
  <!--
arrange the links in images-->
  <
td height="52">
       <
ul id="nav">
           <
li>
   <
font face="Tahoma" size="2">
   <
a href="#" style="text-decoration: none; font-weight:700">
   <
font color="#FF9966">SOLUTIONS</font></a></font>
  <
ul>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">Web Development</font></a></li>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">Web Design</font></a></li>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">E-Commerce</font></a></li>
   
  </
ul>
 </
li>
 <
li>
   <
font face="Tahoma" size="2">
   <
a href="#" style="text-decoration: none; font-weight:700">
   <
font color="#FF9966">PORTFOLIO</font></a></font>
  <
ul>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">Web Development</font></a></li>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">Web Design</font></a></li>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">E-Commerce</font></a></li>
   
  </
ul>
 </
li>
<
li>
   <
font face="Tahoma" size="2">
   <
a href="#" style="text-decoration: none; font-weight:700">
   <
font color="#FF9966">ABOUT US</font></a></font>
  <
ul>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">About</font></a></li>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">Objective</font></a></li>
   <
li><a href="#" style="text-decoration: none; font-weight:700">
            <
font color="#FF9966">E-Commerce</font></a></li>
   
  </
ul>
 </
li>
   
      </
ul>
     </
div>
 
   </
td>
  <
td align="right">&nbsp;</td
</
table
cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 6th, 2006, 18:24
New Member
Join Date: Sep 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS (minor help)

guys sorry got it fixed....thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, minor, help

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Minor IE 6 Problem mikey Web Page Design 7 Jun 20th, 2007 08:45
2 minor problems need sorting AdRock Web Page Design 2 Mar 26th, 2007 22:12
Minor design Flash needed Anonymous User Flash & Multimedia Forum 0 Dec 7th, 2004 20:43


All times are GMT. The time now is 19:33.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8