Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-03-26
3
Medium Priority
?
337 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 84

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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

721 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