web stats analysis

Web Design Archive

How to remove extra margin-bottom from floted image?

Remove white space below image

How to remove image padding?

Type following css:

img {

display: block;

}

How to get Indian Rupee Symbol in C#.Net?

How to use XML?

What is XML?

XML stands for eXtensible Markup Language.
XML is designed to transport and store data.
XML is important to know, and very easy to learn.

Below, there is an example of xml for your better understanding.


<?xml version="1.0"?>
<note>
<to>Bhavesh</to>
<from>Prakash</from>
<heading>Little information</heading>
<body>Give respect take respect(code.top10idea)</body>
</note>

How to pass style in html tag in aspx.cs page?

Solution for: how to pass style in html tag in aspx.cs page?

I had got simple solution is below type this line in aspx.cs.

Write the below code into aspx page.


<div runat="server" id="divid">
</div>

And write the below code into aspx.cs page.


divid.Attributes.CssStyle.Add("property name","value");

Like below example:


divid.Attributes.CssStyle.Add("opacity","0.5");

How to create attractive button step by step?

Use of CSS3 for making attractive button.

Here I try and making a attractive button:

In HTML Document:


<div>
<a href="#">Click Here</a>
</div>

I create div having a link (Name:Click Here)..Add below css:


.button
{
background-color:#e1e1e6;
width:400px;
height:100px;
border:1px solid black;
border-radius:5px;
}

I only created a box here inside which I have to create a button.


.btnred
{
position:relative;
top:36px;
left:35%;
text-decoration:none;
color:#fff;
background:#cb2727;
text-align:center;
padding:20px 30px;
width:115px;
border-radius:5px;
border:solid 1px #ec3838;
transition: all 0.1s;
-webkit-box-shadow: 0px 9px 0px #a81515;   /*for opera and safari*/
-moz-box-shadow: 0px 9px 0px #a81515;     /*for mozilla*/
-o-box-shadow: 0px 9px 0px #a81515;      /*for opera*/
-ms-box-shadow: 0px 9px 0px #a81515;    /*for I.E.*/
}
I set text-decoration to none that’s why link underline is removed. After that, I set color and background-color. Then, I set text-align and padding. The important step here is transition and box-shadow.

CSS3 transitions are effects that let an element gradually change from one style to another.

Add below css:


.btnred:active
{
-webkit-box-shadow: 0px 2px 0px #a81515;
-moz-box-shadow: 0px 2px 0px #a81515;
-o-box-shadow: 0px 2px 0px #a81515;
-ms-box-shadow: 0px 2px 0px #a81515;
position:relative;
top:43px;
}

Note:-Active selector is use to select and style the active link.A link active when you click on it

This button working is that decrese box-shadow and muve the position slightly down so that appears pressing down

How to Change the background color and position using css?

Change the background color and position using css.

Follow below css3:


div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:myfirst 5s;
-webkit-animation:myfirst 5s; /* Safari and Chrome */
}

@keyframes myfirst
{
0%   {background:red; left:0px; top:0px;}
25%  {background:yellow; left:200px; top:0px;}
50%  {background:blue; left:200px; top:200px;}
75%  {background:green; left:0px; top:200px;}
100% {background:red; left:0px; top:0px;}
}

@-webkit-keyframes myfirst /* Safari and Chrome */
{
0%   {background:red; left:0px; top:0px;}
25%  {background:yellow; left:200px; top:0px;}
50%  {background:blue; left:200px; top:200px;}
75%  {background:green; left:0px; top:200px;}
100% {background:red; left:0px; top:0px;}
}

Note:- This example does not work in Internet Explorer 9 and earlier versions.

How to give css3 imges transition Hover Effect?

css3 imges transition Hover Effect

Follow below css3:


div.box {
border-style: solid;
border-width: 1px;
display: block;
width: 100px;
height: 100px;
background-color: #0000FF;

border-corner-sheape:notch;
border-radius:10px;
}
div.box:hover {
background-color: #FFCCCC;
width:200px;
height:200px;

-moz-transition:width 5s, height 5s, background-color 5s, -moz-transform 5s;
-webkit-transition:width 5s, height 5s, background-color 5s, -webkit-transform 5s;
-o-transition:width 5s, height 5s, background-color 5s, -o-transform 5s;
transition:width 5s, height 5s, background-color 5s, transform 5s;
}

Css 3 imges transition Hover Effect,How to build hover and transition effects using css3?,Create modern CSS3 hover effects,
css transitions.

How to give Text-shadow, Photoshop like effects using CSS?

Text-shadow, Photoshop like effects using CSS

Using css give different effect in Text-shadow,Photoshop.

The text-shadow property is use to give different effect.

The text-shadow property is used as follows:

text-shadow: 3px 3px 3px #000;

The above css, following text with a shadow 3px right and below of the text, which blurs for 3px: for click below image.

If anyone not using those browsers, here is a reference image (from Opera 9.5):for click below image.

Note:- This feature is NOT new in CSS3; it was originally proposed in CSS2.

Safari had it from version 1, however!

The following works in Opera, Konqueror, iCab and Firefox 3.1a, and looks really cool (or, rather, the opposite!)for click below image.

And below the reference image click on it:
How to give Text-shadow, Photoshop like effects using CSS,
Text-shadow, Photoshop like effects using CSS,Shadow Effect In CSS,
CSS of Photoshop text effects ,Using CSS Text-Shadow to Create Cool Text
Effects,give different Text-Effects.

How to declare HTML elements?

How to define HTML element?
What is HTML elements?
How to write HTML elements?
In HTML element we can write everything inside the start tag and end tag.

Syntex of HTML elements:
• HTML element must start with a start tag.• HTML element must end with an end tag.

• In HTML element we can write everything inside the start tag and end tag.

• HTML elements also have empty content.

• Every Empty elements are ended in the start tag.

• Most of HTML elements have attributes

Opening Tag Element content Closing Tag
 <a href=”index.htm”> contain Link. </a>
 <p> Contain paragraph. </p>
<br> Conatin break the line.
What is HTML elements,Explain HTML elements
HTML elements.

ul li tag is not working in ie

ul li tags do not display correctly in IE

Copy following code and add after <head> tag in your pag
<!–[if lt IE 9]>
<script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js“></script>
<![endif]–>