Solved

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

Posted on 2014-03-26
3
317 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
  • 2
3 Comments
 
LVL 82

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 82

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now