Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

How to clear CSS STYLES sheet on the html page in a DIV?

I am working on a website that can only be styled by putting div's in like below...


          <div style="border:2px solid #03C; margin:0 0 50px 0;" > 
           
            <ul id="topnav" class="clearfix"><!--start navigation list -->

                <li><a href="index.html">Home</a></li>
               
                <li><a href="service_and_repair.html">Services &amp; Repair</a></li>
                     
                     
                     <ul>
                                     <li><a href="#">Heating &amp; Air Conditioning</a></li>
                             <li><a href="#">Drain Cleaning</a></li>
                         <li><a href="#">Water Heaters</a></li>
                     </ul>                  
                               
                <li><a href="coupon_feb_march_april.html">Coupon/Specials</a></li>
               
                <li><a href="locations.html">Locations</a></li>
               
                <li><a href="contact_us.html">Contact Us</a></li>
           
            </ul><!--end navigation list -->
           
                  </div>  


I am trying to make a dropbown menu, but I can style it! Help!!


Tina
0
TinaMBarnard
Asked:
TinaMBarnard
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
You can't "clear" the CSS for an element, you can only change it with a new definition.  Even then it is only for the individual items.  Changing, for example the font-family or the font-size doesn't affect any other CSS definitions that have been applied to that element.
0
 
TinaMBarnardAuthor Commented:
ok, thank you

I have one more question...

Why would my CSS style sheet only update if I upload it to the server? I can't see any changes on my local Intranet.

Tina
0
 
Dave BaldwinFixer of ProblemsCommented:
CSS and javascript files are often stuck in the browser cache.  I have had to load them directly before my browser would recognize a new version.  I have resorted occasionally to changing the file name each time so my browser would see it as a new file.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now