Cross browser CSS rules [duplicate]2019 Community Moderator ElectionHow to detect Safari, Chrome, IE, Firefox and Opera browser?How to align checkboxes and their labels consistently cross-browsersSet cellpadding and cellspacing in CSS?How to vertically center a div for all browsers?Is there a CSS parent selector?How to make a div 100% height of the browser window?Change an HTML5 input's placeholder color with CSSGet the size of the screen, current web page and browser windowHow can I transition height: 0; to height: auto; using CSS?How do CSS triangles work?Is it possible to apply CSS to half of a character?

Align equations with text before one of them

Problems with rounding giving too many digits

Should we avoid writing fiction about historical events without extensive research?

The past tense for the quoting particle って

PTiJ: How should animals pray?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Create chunks from an array

Can you run a ground wire from stove directly to ground pole in the ground

Why do phishing e-mails use faked e-mail addresses instead of the real one?

Is there a way to find out the age of climbing ropes?

Integrating function with /; in its definition

Naming Characters after Friends/Family

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Why do we call complex numbers “numbers” but we don’t consider 2 vectors numbers?

How spaceships determine each other's mass in space?

Ultrafilters as a double dual

What is the purpose of a disclaimer like "this is not legal advice"?

Quitting employee has privileged access to critical information

Replacing tantalum capacitor with ceramic capacitor for Op Amps

What does it mean when I add a new variable to my linear model and the R^2 stays the same?

What does "rhumatis" mean?

What is "desert glass" and what does it do to the PCs?

An Undercover Army

Convert an array of objects to array of the objects' values



Cross browser CSS rules [duplicate]



2019 Community Moderator ElectionHow to detect Safari, Chrome, IE, Firefox and Opera browser?How to align checkboxes and their labels consistently cross-browsersSet cellpadding and cellspacing in CSS?How to vertically center a div for all browsers?Is there a CSS parent selector?How to make a div 100% height of the browser window?Change an HTML5 input's placeholder color with CSSGet the size of the screen, current web page and browser windowHow can I transition height: 0; to height: auto; using CSS?How do CSS triangles work?Is it possible to apply CSS to half of a character?










0
















This question already has an answer here:



  • How to detect Safari, Chrome, IE, Firefox and Opera browser?

    19 answers



Using one style sheet I want to achieve kind of cross platform rules.
I will show you quite easy example to explain exactly what I want.



I have two div elements like that:



<div class="outer">
<div class="inner">
</div>
</div>


And some simple styles to them:



div.outer 
background-color: red;
width: 200px;
height: 200px;


div.inner
height: 100px;
width: 100px;
background-color: blue;



Now I want to override background color of one of them, for example inner, with the other color based on the browser I'm using. For example if I open this by Chrome I want this color to be green, and when I open it with IE I want it to be blue.
I have an idea how to do this (instead of other style sheets for each browser), but it doesn't work this way:



@media screen 
.chrome .inner
background-color: green !important;




Do you know how to do that guys?










share|improve this question













marked as duplicate by Alohci css
Users with the  css badge can single-handedly close css questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















    0
















    This question already has an answer here:



    • How to detect Safari, Chrome, IE, Firefox and Opera browser?

      19 answers



    Using one style sheet I want to achieve kind of cross platform rules.
    I will show you quite easy example to explain exactly what I want.



    I have two div elements like that:



    <div class="outer">
    <div class="inner">
    </div>
    </div>


    And some simple styles to them:



    div.outer 
    background-color: red;
    width: 200px;
    height: 200px;


    div.inner
    height: 100px;
    width: 100px;
    background-color: blue;



    Now I want to override background color of one of them, for example inner, with the other color based on the browser I'm using. For example if I open this by Chrome I want this color to be green, and when I open it with IE I want it to be blue.
    I have an idea how to do this (instead of other style sheets for each browser), but it doesn't work this way:



    @media screen 
    .chrome .inner
    background-color: green !important;




    Do you know how to do that guys?










    share|improve this question













    marked as duplicate by Alohci css
    Users with the  css badge can single-handedly close css questions as duplicates and reopen them as needed.

    StackExchange.ready(function()
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function()
    $hover.showInfoMessage('',
    messageElement: $msg.clone().show(),
    transient: false,
    position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
    dismissable: false,
    relativeToBody: true
    );
    ,
    function()
    StackExchange.helpers.removeMessages();

    );
    );
    );
    yesterday


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.




















      0












      0








      0









      This question already has an answer here:



      • How to detect Safari, Chrome, IE, Firefox and Opera browser?

        19 answers



      Using one style sheet I want to achieve kind of cross platform rules.
      I will show you quite easy example to explain exactly what I want.



      I have two div elements like that:



      <div class="outer">
      <div class="inner">
      </div>
      </div>


      And some simple styles to them:



      div.outer 
      background-color: red;
      width: 200px;
      height: 200px;


      div.inner
      height: 100px;
      width: 100px;
      background-color: blue;



      Now I want to override background color of one of them, for example inner, with the other color based on the browser I'm using. For example if I open this by Chrome I want this color to be green, and when I open it with IE I want it to be blue.
      I have an idea how to do this (instead of other style sheets for each browser), but it doesn't work this way:



      @media screen 
      .chrome .inner
      background-color: green !important;




      Do you know how to do that guys?










      share|improve this question















      This question already has an answer here:



      • How to detect Safari, Chrome, IE, Firefox and Opera browser?

        19 answers



      Using one style sheet I want to achieve kind of cross platform rules.
      I will show you quite easy example to explain exactly what I want.



      I have two div elements like that:



      <div class="outer">
      <div class="inner">
      </div>
      </div>


      And some simple styles to them:



      div.outer 
      background-color: red;
      width: 200px;
      height: 200px;


      div.inner
      height: 100px;
      width: 100px;
      background-color: blue;



      Now I want to override background color of one of them, for example inner, with the other color based on the browser I'm using. For example if I open this by Chrome I want this color to be green, and when I open it with IE I want it to be blue.
      I have an idea how to do this (instead of other style sheets for each browser), but it doesn't work this way:



      @media screen 
      .chrome .inner
      background-color: green !important;




      Do you know how to do that guys?





      This question already has an answer here:



      • How to detect Safari, Chrome, IE, Firefox and Opera browser?

        19 answers







      css html5 css3 cross-browser






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      MystaxMystax

      53




      53




      marked as duplicate by Alohci css
      Users with the  css badge can single-handedly close css questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      yesterday


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by Alohci css
      Users with the  css badge can single-handedly close css questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      yesterday


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          check this



          it will give you complete cross browser identification

          when you get browser info then just custom you style



          Hope it will help you Happy coding!






          share|improve this answer























          • It's brilliant in its simplicity, thanks a lot.

            – Mystax
            yesterday


















          0














          There are ways to achieve certain effects like this only with CSS & HTML, but this will only target some of the major browsers.. I wouldn't recommend it.
          Here's an example:



          /* style for all browsers (think Google & Safari/Webkit): */
          p
          background-color: blue;

          /* overrule for Firefox: */
          @-moz-document url-prefix()
          p
          background-color: gold;




          And then in your HTML for IE:



          <!--[if IE]>
          <style>
          p
          background-color: purple;

          </style>
          <![endif]-->





          share|improve this answer




















          • 1





            Unfortunately I can mark only one answer as a solution and Rai was better for me, but thank you for help.

            – Mystax
            yesterday











          • That's alright! I hope it helps others in the future looking for pure CSS solutions.

            – Sven
            yesterday

















          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          check this



          it will give you complete cross browser identification

          when you get browser info then just custom you style



          Hope it will help you Happy coding!






          share|improve this answer























          • It's brilliant in its simplicity, thanks a lot.

            – Mystax
            yesterday















          0














          check this



          it will give you complete cross browser identification

          when you get browser info then just custom you style



          Hope it will help you Happy coding!






          share|improve this answer























          • It's brilliant in its simplicity, thanks a lot.

            – Mystax
            yesterday













          0












          0








          0







          check this



          it will give you complete cross browser identification

          when you get browser info then just custom you style



          Hope it will help you Happy coding!






          share|improve this answer













          check this



          it will give you complete cross browser identification

          when you get browser info then just custom you style



          Hope it will help you Happy coding!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          Rai Talha RehmanRai Talha Rehman

          5011




          5011












          • It's brilliant in its simplicity, thanks a lot.

            – Mystax
            yesterday

















          • It's brilliant in its simplicity, thanks a lot.

            – Mystax
            yesterday
















          It's brilliant in its simplicity, thanks a lot.

          – Mystax
          yesterday





          It's brilliant in its simplicity, thanks a lot.

          – Mystax
          yesterday













          0














          There are ways to achieve certain effects like this only with CSS & HTML, but this will only target some of the major browsers.. I wouldn't recommend it.
          Here's an example:



          /* style for all browsers (think Google & Safari/Webkit): */
          p
          background-color: blue;

          /* overrule for Firefox: */
          @-moz-document url-prefix()
          p
          background-color: gold;




          And then in your HTML for IE:



          <!--[if IE]>
          <style>
          p
          background-color: purple;

          </style>
          <![endif]-->





          share|improve this answer




















          • 1





            Unfortunately I can mark only one answer as a solution and Rai was better for me, but thank you for help.

            – Mystax
            yesterday











          • That's alright! I hope it helps others in the future looking for pure CSS solutions.

            – Sven
            yesterday















          0














          There are ways to achieve certain effects like this only with CSS & HTML, but this will only target some of the major browsers.. I wouldn't recommend it.
          Here's an example:



          /* style for all browsers (think Google & Safari/Webkit): */
          p
          background-color: blue;

          /* overrule for Firefox: */
          @-moz-document url-prefix()
          p
          background-color: gold;




          And then in your HTML for IE:



          <!--[if IE]>
          <style>
          p
          background-color: purple;

          </style>
          <![endif]-->





          share|improve this answer




















          • 1





            Unfortunately I can mark only one answer as a solution and Rai was better for me, but thank you for help.

            – Mystax
            yesterday











          • That's alright! I hope it helps others in the future looking for pure CSS solutions.

            – Sven
            yesterday













          0












          0








          0







          There are ways to achieve certain effects like this only with CSS & HTML, but this will only target some of the major browsers.. I wouldn't recommend it.
          Here's an example:



          /* style for all browsers (think Google & Safari/Webkit): */
          p
          background-color: blue;

          /* overrule for Firefox: */
          @-moz-document url-prefix()
          p
          background-color: gold;




          And then in your HTML for IE:



          <!--[if IE]>
          <style>
          p
          background-color: purple;

          </style>
          <![endif]-->





          share|improve this answer















          There are ways to achieve certain effects like this only with CSS & HTML, but this will only target some of the major browsers.. I wouldn't recommend it.
          Here's an example:



          /* style for all browsers (think Google & Safari/Webkit): */
          p
          background-color: blue;

          /* overrule for Firefox: */
          @-moz-document url-prefix()
          p
          background-color: gold;




          And then in your HTML for IE:



          <!--[if IE]>
          <style>
          p
          background-color: purple;

          </style>
          <![endif]-->






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered yesterday









          SvenSven

          407514




          407514







          • 1





            Unfortunately I can mark only one answer as a solution and Rai was better for me, but thank you for help.

            – Mystax
            yesterday











          • That's alright! I hope it helps others in the future looking for pure CSS solutions.

            – Sven
            yesterday












          • 1





            Unfortunately I can mark only one answer as a solution and Rai was better for me, but thank you for help.

            – Mystax
            yesterday











          • That's alright! I hope it helps others in the future looking for pure CSS solutions.

            – Sven
            yesterday







          1




          1





          Unfortunately I can mark only one answer as a solution and Rai was better for me, but thank you for help.

          – Mystax
          yesterday





          Unfortunately I can mark only one answer as a solution and Rai was better for me, but thank you for help.

          – Mystax
          yesterday













          That's alright! I hope it helps others in the future looking for pure CSS solutions.

          – Sven
          yesterday





          That's alright! I hope it helps others in the future looking for pure CSS solutions.

          – Sven
          yesterday



          Popular posts from this blog

          Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

          Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices

          How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page