Gyancode

A free library of HTML, CSS, JS

Search This Blog

Tuesday 11 April 2017

Tooltip with bootstrap

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Tooltip with bootstrap</title>
</head>
<script type="text/javascript">
    $('a').tooltip();
</script>
<body>
<div class="navbar tooltip-demo">
            <ul class="nav">
              <li><a class="top" title="" data-placement="top" data-toggle="tooltip" href="#" data-original-title="Tooltip on top">Tooltip on top</a></li>
              <li><a class="right" title="" data-placement="right" data-toggle="tooltip" href="#" data-original-title="Tooltip on right">Tooltip on right</a></li>
              <li><a class="bottom" title="" data-placement="bottom" data-toggle="tooltip" href="#" data-original-title="Tooltip on bottom">Tooltip on bottom</a></li>
              <li><a class="left" title="" data-placement="left" data-toggle="tooltip" href="#" data-original-title="Tooltip on left">Tooltip on left</a></li>
            </ul>
          </div>
</body>
</html>

Monday 10 April 2017

Text-shadow not showing

I want to apply text-shadow property on a heading text but it is not showing


<style rel="Stylesheet" type="text/css" >
 .shadow { 
  color: black; 
  font: bold 52px Helvetica, Arial, Sans-Serif;
  text-shadow: 1px 1px #fe4902, 
            2px 2px #fe4902, 
            3px 3px #fe4902;
   -webkit-transition: all 0.12s ease-out;
   -moz-transition:    all 0.12s ease-out;
}
.shadow:hover {
   position: relative; 
   -webkit-transform: scale(1.1); 
   -moz-transform:    scale(1.1);
   -ms-transform:     scale(1.1); 
   -o-transform:      scale(1.1); 
   text-shadow: 5px 0px 2px rgba(150, 150, 150, 1);
 }
</style>


HTML :

 <h1 class='shadow'>Reseller welcome</h1>

Wednesday 5 April 2017

CSS !important not working

I have the following code and for some reason the !important qualifier isn't working.

<div style="font-family : calibri; font-size: 20pt !important;">
  <ul>
    <li>
      <span style="font-size: 11px;">
        <span style="font-size: 11px;">
          Honey Glazed Applewood Smoked Spiral Ham 
        </span>
        <span style="font-size: 11px;">
          Served with Dijon Honey Mustard and Turkey Roulade
        </span>
      </span>
    </li>
  </ul>
</div>

Give the <div> an id and then add this rule to your CSS stylesheet (or in a <style> tag if you don't want to change the style sheet):

#your_div_id span {font-family : calibri; font-size: 24px !important;}

!important in CSS allows the author to override inline styles (since they have a higher precedence than style sheet styles normally). It doesn't automatically make the style marked !important override everything else.

Tuesday 4 April 2017

Some Reason CSS not working

This problem is making me feel like an absolute noob.

Here is the head of my .html file:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<link href="http://fakedomain.com/smilemachine/html.css" rel="stylesheet"/>
<title>Some Reason CSS not working</title>

</head>

And my html.css file is indeed where it should be. But I'm getting absolutely no styling whatsoever. Help!

And please don't down vote just because the answer is obvious and I can't see it.



1. Maybe CSS not available in folder
2. Maybe Path issue
3. Maybe you can't attach the CSS
4. Maybe css name 

You can check all issue your design as working fine.

Okay, so now I'm just trying to fix the problem locally on my machine. Here is the head:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<link href="style.css" rel="stylesheet" type="text/css"/>(Note: Use like this)
<title></title>

</head>




Thanks...