Create Fancy Tables Using css.

Use this code for create fancy table.
Create a file and paste this code. File name must contain .html format.


Output
Company Contact Country
Alfreds Futterkiste Maria Anders Germany
Berglunds snabbköp Christina Berglund Sweden
Centro comercial Moctezuma Francisco Chang Mexico
Ernst Handel Roland Mendel Austria
Island Trading Helen Bennett UK
Königlich Essen Philip Cramer Germany
Laughing Bacchus Winecellars Yoshi Tannamuri Canada
Magazzini Alimentari Riuniti Giovanni Rovelli Italy
North/South Simon Crowther UK
Paris spécialités Marie Bertrand France

Set the color of the borders by css


Hello everybody, how are you? Today I have come with the tutorial about how can you add color in the css border. Some days Ago, I have write a tutorial about making css border. You can view it here.

Set the style of the border by css


In that tutorial we will learn to create deferent css border and in this tutorial we will learn how to set color in border. Okey, now create a file with name border-color.html and paste this code in the file and save the file.



See the code and you will see that, first we create deferent css class for deferent color and then we use it with paragraph- <p> tag.

Now see the output of this code.


One-colored border!

Two-colored border!

Three-colored border!

Four-colored border!

Note: The "border-color" property does not work if it is used alone. Use the "border-style" property to set the borders first.

[CSS] Set the style of the borders

You can add deferent borders in text. Just follow the tutorial. paste this code to your html file and see your output.



Output



No border.

A dotted border.

A dashed border.

A solid border.

A double border.

A groove border.

A ridge border.

An inset border.

An outset border.

Highlight admin comment in blogspot differently.

Hey guys, how are you? Hope you are fine and pray to God to stay fine whole life. Today I have come to share a blogspot tricks that will help you to highlight admin comment differently. This will help your user to find admin comment easily.



How can you add this to your blog?

First login your blogger account and switch your blog from blog list. Now go to Template and backup your template for security. Now click EDIT HTML.

In a word follow this Blogger → Template → EDIT HTML.



Now search </body> by Ctrl+F from your keyboard and paste bellow code before of </body>  tag.



Now save your template and view your blog's admin comment or your comment(as you are the admin). If face any problem then drop them in comment box.

Make HTML CSS photo gallery

Css and HTML is very important if you want to make photo gallery. Today, I will show you how you can make a photo gallery using html and css.
First, make style(css) for our photo gallery.



Now it's time to use html to create gallery using html.



You can add javascript to welcome user. Now our full photo gallery code is


Then your photo gallery will look like this

How to create a tooltip using CSS without jQuery.

Tooltip is a great way to show your user more information by simply hovering over an image or text. They can be used, for example, to provide captions for images, or longer descriptions for links, or any useful information which would improve the user experience of your site.


Today I’m going to show you how to create a simple tooltip using HTML and CSS to display the title tag of your hyperlinks.

Let’s start creating some simple markup for the link. We need to give it a title which will be the tooltip content, and assign it a class.


The next step is to create some styles for
our tooltip class.


We are now displaying our tooltip inline with our link using relative position. Next we want to create a rounded box to form the body of the tooltip, and position it so that it floats above the link:


We are using the :hover selector which selects an element, in this case our link, on mouseover and the :after selector, which inserts content after the selected element. We have specified a black background with 80% opacity and for browsers that do not support RGBA colors we have provided a dark grey background. Slightly rounded corners are created by using the border-radius attribute and we have set the text color to white.

Lastly, we have positioned the tooltip box from the left of the link and added a little padding. As well as the styling and positioning, we have set the content property:


This property allows us to insert the content we want which can be a string, a media file or an attribute of the element. In this case we are using the title attribute of
the link. Now when you hover over your link a tooltip should be appear above it with the text you set as your link title. We have one problem though, the title information is being shown twice: once in the tooltip and once by the browser. To fix this we need to make a slight change to our HTML:


What we’ve done here is wrap the link text in a span tag with its own title attribute. Now the browser will display the title set in the span tag when the link is hovered over.

To finish we will add an arrow to the bottom of the tooltip, to give it that little extra touch of style. We do this by using the :before selector and some border styles:


We are using a few border hacks here to create the effect of an arrow. setting the border colors on the left and right to transparent and controlling the border widths. We’ve also positioned the arrow so it sits on the bottom of the tooltip box. And there you have it, a simple tooltip with the title tag of the element hovered over. You could also use this for image alt tags, or even just put your own text into the CSS to pop up where you want.

Create CSS dropdown menu

If you don't know how to create a menu then you can follow this tutorial. Paste the code in a html file. Ex: menu.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
charset=utf-8" />
<title>My Beautiful css menu</title>
<link href="menu.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="menu">
<ul>
<li><a href="#">Desktops</a></li>
<li><a href="#">Laptops &amp;
Notebooks</a></li>
<li><a href="#">Components</a>
<ul>
<li><a href="#"> Mice and Trackballs</a></li>
<li><a href="#"> Monitors</a></li>
<li><a href="#"> Printers</a></li>
<li><a href="#"> Scanners</a></li>
<li><a href="#"> Web Cameras</a>
<ul>
<li><a href="#"> Mice and Trackballs</a></li>
<li><a href="#"> Monitors</a></li>
<li><a href="#"> Printers</a></li>
<li><a href="#"> Scanners</a></li>
<li><a href="#"> Web Cameras</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Tablets</a></li>
<li><a href="#">Software</a></li>
</ul>
</div>
</body>
</html>

Now, save the file.

Save the bellow code with name menu.css

.menu {
    background: none repeat scroll 0 0 #1A1A1A;
    display: block;
    height: 40px;
    margin: 0 auto;
    width: 960px;
}
.menu ul{
padding:0;
margin:0;
}
.menu ul li{
float:left;
list-style:none;
position:relative;
width:150px;
}
.menu ul li a{
font-size:14px;
padding:12px 10px;
text-decoration:none;
display:block;
color:#0FF;
background:#000;
}
.menu ul li a:hover{
color:#F00;
background:#666;
}
.menu ul li ul{
top:39px;
width:150px;
left:0;
padding:0;
margin:0;
position:absolute;
display:block;
visibility:hidden;
}
.menu ul li:hover ul{
display:block;
visibility:visible;
}
.menu ul li:hover ul li ul{
display:block;
left:150px;
position:absolute;
width:150px;
top: 0;
padding:0;
margin:0;
visibility:hidden;
}
.menu ul li ul li:hover ul{
display:block;
visibility:visible;
}

And save this file and run your menu.html file.


Popular Posts

Post Category

Blog Statistics

Now online

Page views
Powered by Blogger.