Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Thursday, 16 October 2014

SVG Image Example

SVG IMAGE Examlpe
SVG Image
<html>
<title>SVG Image</title>
<body>
<h1>Sample SVG Image</h1>
<svg width="100" height="100">
  <circle cx="50" cy="50" r="40" stroke="red" stroke-width="2" fill="green" />
</svg>
</body>
</html>

Wednesday, 6 August 2014

Wordwrap in CS3 Html style

<?php
$t="LognTEXTLognTEXTLognTEXTLognTEXTLognTEXTLognTEXTLognTEXTLognTEXTLognTEXT";
echo "$t<br/>";
?>
<div style="width:100px;border:1px solid red;word-wrap: break-word;">
<?php echo $t; ?>
</div>

Tuesday, 15 July 2014

CSS Message bog show automatically & hide

<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<style type="text/css">
.message{ width: 90%; margin-left:auto; margin-right:auto; position: relative; top: 5px; }
</style>
<?php if(isset($_SESSION["e_msg"]) && $_SESSION["e_msg"]!=""){ ?>
<div class="alert alert-danger alert-error message" style='display:none;'>
   <a href="#" class="close" data-dismiss="alert">×</a>
   <strong>Error!</strong> <?php echo $_SESSION["e_msg"]; ?>
</div>
<script type='text/javascript'>
$( document ).ready(function() {    $(".alert-danger").fadeIn( "slow" );  });
setTimeout(function(){ $(".alert-danger").slideToggle( "slow" ); },3000);</script>
<?php
unset($_SESSION['e_msg']);
}
if(isset($_SESSION["i_msg"]) && $_SESSION["i_msg"]!=""){ ?>
<div class="alert alert-info message" style='display:none;'>
   <a href="#" class="close" data-dismiss="alert">×</a>
   <strong>Note!</strong> <?php echo $_SESSION["i_msg"]; ?>
</div>
<script type='text/javascript'>
$( document ).ready(function() {    $(".alert-info").fadeIn( "slow" );  });
setTimeout(function(){ $(".alert-info").slideToggle( "slow" ); },3000);</script>
<?php
unset($_SESSION['i_msg']);
}
if(isset($_SESSION["w_msg"]) && $_SESSION["w_msg"]!=""){ ?>
<div class="alert alert-warning warning message " style='display:none;'>
    <a href="#" class="close" data-dismiss="alert">×</a>
    <strong>Warning!</strong>  <?php echo $_SESSION["w_msg"]; ?>
</div>
<script type='text/javascript'>
$( document ).ready(function() {    $(".alert-warning").fadeIn( "slow" );  });
setTimeout(function(){ $(".alert-warning").slideToggle( "slow" ); },3000);</script>
<?php
unset($_SESSION['w_msg']);
}
if(isset($_SESSION["s_msg"]) && $_SESSION["s_msg"]!=""){ ?>

<div class="alert alert-success message" style='display:none;'>
   <a href="#" class="close" data-dismiss="alert">×</a>
   <strong>Success!</strong>  <?php echo $_SESSION["s_msg"]; ?>
</div>
<script type='text/javascript'>
$( document ).ready(function() {    $(".alert-success").fadeIn( "slow" );  });
setTimeout(function(){ $(".alert-success").slideToggle( "slow" ); },3000);</script>
<?php
unset($_SESSION['s_msg']);
}
?>

Wednesday, 25 June 2014

Set Position of Bootstrap Modal Popup

@media screen and (min-width: 768px) {
    .modal-dialog {
        left: 50%;
        right: auto;
        width: 624px;
    }
}
.modal-dialog{
position: absolute;
left: 50%;
//now you must set a margin left under zero - value is a half width your window
margin-left: -312px;
// this same situation is with height - example
height: 500px;
top: 50%;
margin-top: -250px;
} 

Thursday, 19 June 2014

HTML Special character and how to use that code


To do this... Type this... Or this... Description
   &lsquo; left single quote
   &rsquo; right single quote
   &sbquo; single low-9 quote
   &ldquo; left double quote
   &rdquo; right double quote
   &bdquo; double low-9 quote
   &dagger; dagger
   &Dagger; double dagger
   &permil; per mill sign
   &lsaquo; single left-pointing angle quote
   &rsaquo; single right-pointing angle quote
   &spades; black spade suit
   &clubs; black club suit
   &hearts; black heart suit
   &diams; black diamond suit
   &#9733; black star
   &#9734; white star
   &oline; overline, = spacing overscore
   &larr; leftward arrow
   &uarr; upward arrow
   &rarr; rightward arrow
   &darr; downward arrow
©   &copy; &#169; copyright sign
   &trade; trademark sign
&#00;-
&#08;
unused
&#09; horizontal tab
&#10; line feed
  &nbsp; &#160; Non-breaking space
&#32; space
!   &#33; exclamation mark
"   &quot; &#34; double quotation mark
#   &#35; number sign
$   &#36; dollar sign
%   &#37; percent sign
&   &amp; &#38; ampersand
'   &#39; apostrophe
(   &#40; left parenthesis
)   &#41; right parenthesis
*   &#42; asterisk
+   &#43; plus sign
,   &#44; comma
-   &#45; hyphen
.   &#46; period
·   &middot; &#183; middle dot
   &#149; bullet
/   &frasl; &#47; slash
0 - 9 &#48;-
&#57;
digits 0-9
:   &#58; colon
;   &#59; semicolon
<   &lt; &#60; less-than sign
=   &#61; equals sign
>   &gt; &#62; greater-than sign
?   &#63; question mark
@   &#64; at sign
A - Z &#65;-
&#90;
uppercase letters A-Z
[   &#91; left square bracket
\   &#92; backslash
]   &#93; right square bracket
^   &#94; caret
_   &#95; horizontal bar (underscore)
`   &#96; grave accent
a - z &#97;-
&#122;
lowercase letters a-z
{   &#123; left curly brace
|   &#124; vertical bar
/   &frasl; &#47; slash
°   &deg; &#176; degree sign
±   &plusmn; &#177; plus or minus
²   &sup2; &#178; superscript two
³   &sup3; &#179; superscript three
´   &acute; &#180; acute accent
µ   &micro; &#181; micro sign
   &para; &#182; paragraph sign
¸   &cedil; &#184; cedilla
¹   &sup1; &#185; superscript one
º   &ordm; &#186; masculine ordinal
   &raquo; &#187; right angle quote
¼   &frac14; &#188; one-fourth
½   &frac12; &#189; one-half
¾   &frac34; &#190; three-fourths
¿   &iquest; &#191; inverted question mark
À   &Agrave; &#192; uppercase A, grave accent
Á   &Aacute; &#193; uppercase A, acute accent
   &Acirc; &#194; uppercase A, circumflex accent
à  &Atilde; &#195; uppercase A, tilde
Ä   &Auml; &#196; uppercase A, umlaut
Å   &Aring; &#197; uppercase A, ring
Æ   &AElig; &#198; uppercase AE
Ç   &Ccedil; &#199; uppercase C, cedilla
È   &Egrave; &#200; uppercase E, grave accent
É   &Eacute; &#201; uppercase E, acute accent
Ê   &Ecirc; &#202; uppercase E, circumflex accent
Ë   &Euml; &#203; uppercase E, umlaut
Ì   &Igrave; &#204; uppercase I, grave accent
Í   &Iacute; &#205; uppercase I, acute accent
Π  &Icirc; &#206; uppercase I, circumflex accent
Ï   &Iuml; &#207; uppercase I, umlaut
Р  &ETH; &#208; uppercase Eth, Icelandic
Ñ   &Ntilde; &#209; uppercase N, tilde
Ò   &Ograve; &#210; uppercase O, grave accent
Ó   &Oacute; &#211; uppercase O, acute accent
Ô   &Ocirc; &#212; uppercase O, circumflex accent
Õ   &Otilde; &#213; uppercase O, tilde
Ö   &Ouml; &#214; uppercase O, umlaut
×   &times; &#215; multiplication sign
Ø   &Oslash; &#216; uppercase O, slash
Ù   &Ugrave; &#217; uppercase U, grave accent
Ú   &Uacute; &#218; uppercase U, acute accent
Û   &Ucirc; &#219; uppercase U, circumflex accent
Ü   &Uuml; &#220; uppercase U, umlaut
Ý   &Yacute; &#221; uppercase Y, acute accent
Þ   &THORN; &#222; uppercase THORN, Icelandic
ß   &szlig; &#223; lowercase sharps, German
à   &agrave; &#224; lowercase a, grave accent
á   &aacute; &#225; lowercase a, acute accent
â   &acirc; &#226; lowercase a, circumflex accent
ã   &atilde; &#227; lowercase a, tilde
ä   &auml; &#228; lowercase a, umlaut
å   &aring; &#229; lowercase a, ring
æ   &aelig; &#230; lowercase ae
ç   &ccedil; &#231; lowercase c, cedilla
è   &egrave; &#232; lowercase e, grave accent
é   &eacute; &#233; lowercase e, acute accent
ê   &ecirc; &#234; lowercase e, circumflex accent
ë   &euml; &#235; lowercase e, umlaut
ì   &igrave; &#236; lowercase i, grave accent
í   &iacute; &#237; lowercase i, acute accent
î   &icirc; &#238; lowercase i, circumflex accent
ï   &iuml; &#239; lowercase i, umlaut
ð   &eth; &#240; lowercase eth, Icelandic
ñ   &ntilde; &#241; lowercase n, tilde
ò   &ograve; &#242; lowercase o, grave accent
ó   &oacute; &#243; lowercase o, acute accent
ô   &ocirc; &#244; lowercase o, circumflex accent
õ   &otilde; &#245; lowercase o, tilde
ö   &ouml; &#246; lowercase o, umlaut
÷   &divide; &#247; division sign
ø   &oslash; &#248; lowercase o, slash
ù   &ugrave; &#249; lowercase u, grave accent
ú   &uacute; &#250; lowercase u, acute accent
û   &ucirc; &#251; lowercase u, circumflex accent
ü   &uuml; &#252; lowercase u, umlaut
ý   &yacute; &#253; lowercase y, acute accent
þ   &thorn; &#254; lowercase thorn, Icelandic
ÿ   &yuml; &#255; lowercase y, umlaut

Monday, 7 April 2014

HTML codes to put currency characters on your Web page


Display Friendly Code Numerical Code Hex Code Description
&#x20B9; &#x20B9; &#x20B9; Indian Currency Symbol
¤ &curren; &#164; &#xA4; Generic Currency Symbol
$ $ &#36; &#x24; Dollar Sign
¢ &cent; &#162; &#xA2; Cent Sign
£ &pound; &#163; &#xA3; Pound Sterling
¥ &yen; &#165; &#xA4; Yen Symbol
? &#8355; &#x20A3; Franc Sign
? &#8356; &#x20A4; Lira Symbol
? &#8359; &#x20A7; Peseta Sign
&euro; &#128; &#x80; Euro Symbol
% % &#37; &#x25; Percent
&#137; &#x2030; Per Thousand