Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, from the below menu code once I used the style part in same file of head area is working fine...But once I copy & paste this codes to styles.css in style sheet.... but not working like the previous same file style...

Any suggestion for me? Thanks for the guidances...

CSS Code given in head part:
HTML
<style type="text/css" >
        .red #slatenav{position:relative;display:block;height:42px;font-size:15px;font-weight:bold; background:transparent url(MyImages/MenuLine.jpg) repeat-x top left;font-family: Calibri; }
    .red #slatenav ul{margin:0px;padding:0;list-style-type:none;width:auto;}
    .red #slatenav ul li{display:block;float:left;margin:0 1px 0 0; }
    .red #slatenav ul li a{display:block;float:left;color:#fff;text-decoration:none;padding:12px 28px 0 28px;height:28px;border: 1px #606060 solid;}
</style>


My Menu Codes

HTML
<div class="red">
     <div id="slatenav">
          <ul>
              <li id="Home"><a href="#" title="css menus"></a></li>
              <li><a href="#" title="css menus">About Us</a></li>
              <li><a href="#" title="css menus">Solutions</a></li>
           <li><a href="#" title="css menus">Services</a></li>
           <li><a href="#" title="css menus">Technical Support</a></li>
        </ul>
     </div>
</div>


Thanks
Posted
Updated 27-Aug-13 22:31pm
v2
Comments
Thanks7872 28-Aug-13 4:42am    
Check for the path of the CSS file. If you are going to put this code in Style.css than the page should contain link to that style sheet with correct path.
Paramu1973 28-Aug-13 4:50am    
mentioned..that's why its working half manner... link is not a matter...

<link href="Styles/Site.css" rel="stylesheet" type="text/css" />
Thankyou
Please check the console of FireBug in FireFox. You will see the errors.
Anand Kumar Prajapati 28-Aug-13 6:39am    
Try clearing your browser's cache and then refresh page.

This might be an Issues..It's a folder problem....between stylesheet & folder..
Thanks Again
 
Share this answer
 
No...Its look like an issue...

The below link method will work no, problem.. for css refering the images

The below link method will not work for images
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900