Solved

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

Posted on 2014-03-26
3
328 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
html form layout 4 53
How to get chosen background-color on every line? 10 44
Loading Self-Hosted Fonts 12 43
Editing .asp website 5 30
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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…
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).

739 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