Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8116731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:55:24+00:00 2026-06-06T03:55:24+00:00

If in my webpage, i have all the three css defined for a div

  • 0

If in my webpage, i have all the three css defined for a div

  1. Inline
  2. Internal
  3. external

I know that browser first looks for 1)Inline then for 2)Internal and last, it looks for external css.

but i want to call only external css, how it would be done?? Can i do it through !important or there is any other way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:55:26+00:00Added an answer on June 6, 2026 at 3:55 am

    Best thing to do is to put everything into an external css file.
    If you must have inline styling then make sure you only have ones that aren’t already defined
    in your external stylesheet. i.e Dont duplicate/override styling. e.g, if you have the following in your css file:

    div { padding: 5px; }
    

    then dont have the following inline styling.

    <div style="padding-right:2px;" />
    

    Just put it into the css file

    div { padding: 5px 2px 5px 5px; }
    

    Like you said, you can use !important if you have to override a styling for just one page that doesn’t apply to the other pages in your site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage that contains ASP.NET panels and JavaScript that gets all of
i have a webpage that looks like this: http://yoursdproperty.com/index2.php?option=com_jumi&fileid=3&Itemid=11 i want the page to
I have a file that I include on all my webpages that contains the
I have a requirement that in a webpage I have multiple block of content
I need to include a css-file in my webpage, but the problem is that
I am creating a webpage..as usual. But I have a problem. Lets say that
I have a CSS class defined, call it: <style type=text/css> .Foo { position: fixed;
Pretty simple question, I have a webpage that is used exclusively on iPads. I've
I have a webpage that on a button click grays out the main form
So I have made a web page of HTML, Inline CSS and JS. Since

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.