Solved

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

Posted on 2014-03-26
3
332 Views
Last Modified: 2014-04-14
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
Comment
Question by:TinaMBarnard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39957126
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
 

Author Comment

by:TinaMBarnard
ID: 39957143
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
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39957253
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses four methods for overlaying images in a container on a web page
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question