Saturday 28 June 2014

Top 5 HTML AND CSS Editor

Hi friends
Today I come with new thing. People are taking keen interest in web designing.  In the case when you write a long css and html you do lots of hard work but you made many mistake which are harmful for you so I bring some thing for you which can reduce you hard work, time and efforts and you can write clean and proper html and css. There are many html editors are available in the market with you can write the clean and proper html and css. Here I am going to describe some of the best html and css editor.
 ALSO READ:

ADOBE DREAMWEAVER

Adobe dream weaver is the most popular web development software. It is very best software to edit the document. In this software you can edit html, css, JavaScript, php and many others. It is very powerful tool the mostly developer use the dreamweaver.

Adobe Dreamweaver

Coffee Cup.

It is the one of my best html and css editor I am using it to edit the html and css document and believe me  it is very easy to use . You don’t need to learn eat you can use it very easily. You can manage project and mange your website through coffee cup.
html editor

Aptana studio

Aptana studio is interesting web development software you can manage you WebPages through it easily. It has colorful code and line numbering and quick button for browser.

html editor

NOTE PAD++

It is very simple best editor. It is the replacement of notepad it has many features such as syntax highlighting. Multi tab system and supported many languages. It is free you candownload it from here.

notepad

Context


Context editor is updates from notepad ++ . you can open many tabs at time and great syntax highlighted for many programming languages and supported many languages.
context html editor

Conclusion

Now you can choose best editor which you can use easily. Please share our post with your friend and don't forget share our post with your friends.
Read More...

Tuesday 3 June 2014

How To Use CSS Position

Welcome friends!
As you know in the previous we discussed about the float what is float? And how to use them and solve other problems related to the float. You can contort the layout by the float property but there is another important property which is called css position. In this tutorial we are going to explore css positioning. Css positioning is another important property to controlling the layout.

What is css positioning?

Css position property is used to control the flow of elements in the webpage or position the element on the webpage. With the help of position property you can position the element on the page where you want.

Static position

In css position static is the default value it is not affected by the left, right, top, and bottom.

NOTE
To set up the position you must define the position property .
Example without using static position:

.box1{
width:150px;
height:150px;
background-color:#0000A0;
}

 .box2{
 width:150px;
height:150px;
background-color:#FF0000;
  }

  .box3{
  width:150px;
height:150px;
background-color:#00FF00;
   }

css positioning

Example with using static position:

.box1{
position:static;
right:20px;
width:150px;
height:150px;
background-color:#0000A0;

 }
 .box2{
 position:static;
 top:10px;
 width:150px;
height:150px;
background-color:#FF0000;
  }
  .box3{
  position:static;
  left:100px;
   width:150px;
height:150px;
background-color:#00FF00;
   }
css positioning

Now you can see there is no difference between using static position property or not and other thing is that it is not affected by the left, right, top and bottom.

RELATIVE POSITION

Css position relative behave like static position but it is affected by top, bottom, left and right but the static position is not affected by these properties.
                                                                                                         
EXAMPLE NO:1
.box1{
position:relative;
width:150px;
height:150px;
background-color:#0000A0;

 }
 .box2{
position:relative;
 width:150px;
height:200px;
background-color:#FF0000;
  }
  .box3{
  position:relative;
   width:150px;
height:150px;
background-color:#00FF00;
  }


css relative position
In the above example you can see the relative position is behaving like static position.

EXAMPLE NO:2
.box1{
position:relative;
width:150px;
height:150px;
background-color:#0000A0;
}
 .box2{
position:relative;
left:200px;
 width:150px;
height:200px;
background-color:#FF0000;
  }
  .box3{
  position:relative;
   width:150px;
height:150px;
background-color:#00FF00;
   }
css positioning

In the above example you can see how the second box is affect by the adding of left position property.

NOTE
In the relative positioning all element affected by it so while using relative position be careful. Absolute property is very useful to avoid these problems.


Css Absolute Position

Css position absolute is the best way of positioning element. With the absolute position you can place the where you want it does not affect the other element on the page that’s why this property of position is very useful.

EXAMPLE
.box1{
position:absolute;
top:0px;
left:200px;
width:150px;
height:150px;
background-color:#0000A0;
 }
 .box2{
width:150px;
height:200px;
background-color:#FF0000;
  }
  .box3{
width:150px;
height:150px;
background-color:#00FF00;
   }

css absolute position

In the above example you can observe that after adding the absolute position to the first box it is not affected other elements.

POSITION FIXED

Css position fixed is always stay at one place it moves with the scrolling of the page.

EXAMPLE
#topnav {
            background-color:#262626;
            width:100%;
            height:50px;
           position:fixed;
           top:0px;}

css position fixed

In the above screen shot you can see the navbar on the top which has fixed position.

Z-INDEX

This property very useful in some condition when you apply position to the element it overlap the other element to solve this problem we use z-index css property.

EXAMPLE before applying z-index
.box1{
position:absolute;
top:0px;
left:200px;
width:150px;
height:150px;
background-color:#0000A0;
}
 .box2{
position:absolute;
left:210px;
top:20px;
 width:150px;
height:200px;
background-color:#FF0000;
  }
  .box3{
 width:150px;
height:150px;
background-color:#00FF00;
   }
z-index css

In the above example you can see how the boxes overlapping each other and now it is your wish which element you want in the front and the which one in the behind.

EXAMPLE after applying z-index
.box1{
position:absolute;
top:0px;
left:200px;
z-index:1;
width:150px;
height:150px;
background-color:#0000A0;

 }
 .box2{
position:absolute;
left:210px;
top:20px;
 width:150px;
height:200px;
background-color:#FF0000;
  }
  .box3{
width:150px;
height:150px;
background-color:#00FF00;
   }

css z-index

CONCLUSION
After the understanding of positioning now you can design the beautiful layouts with the help of positioning.

Pleaser remember me in your prayer and share our post with your friends. Thanks!
Read More...

Sunday 25 May 2014

CSS FLOAT PROPERTY

Hi friends
As you know that our last post about css conflicts and today we are going to discuss about the float property which is used for designing layout. Before using float people try to create layout with html tables and frames but later the css property float which is now famous and use by designer to make the layout. With the help of float property you can easily design the layout but the problem is that if you don’t know it properly you have to face lots of problem. So today I am going to discuss the all those problem which relate to the floats.

WHAT IS THE FLOAT?
Float is the property of css which is used to positioning the element on the webpage. It has four values left, right, none and inherit.
                                                                                                                       
Left to float the element on the left side.
Right to float the element on the right side.
None it is the default property. The element will not float.
Inherit the property inherited from the parent element.


ADVANTAGES OF FLOAT
The float property used to design layout.
It is used to the wrap text around the image.
It is used to positioning the element.

It is used to make columns.

EXAMPLE;
#para1{float:left;
width:200px;
margin:10px;
}#para2{float:left;
width:200px;
margin:10px;
}

float property

CLEAR
It is the very helpful property to control the float. For example you make layout in which you add the float to the two element such as #content and #sidebar and footer move itself behind the these two elements. How to recover the float to its original position?
We use the clear property to recover the original position of elements.
For example
Example befor using clear property;
#container {
background-color:#C0C0C0;width:500px;
height:500px;
margin:10px;
float:left;
border:1px solid black;
}
#sidebar {
background-color:#C0C0C0;width:400px;
height;400px;
float:left;
margin:10px;
border: 1px solid black;
}
#footer {
background-color:#8E8E8E;
width:920px;
height:100px;
}



layout


Example after using clear property;
#container {
background-color:#C0C0C0;width:500px;
height:500px;
margin:10px;
float:left;
border:1px solid black;
}
#sidebar {
background-color:#C0C0C0;width:400px;
height;400px;
float:left;
margin:10px;
border: 1px solid black;
}
#footer {
background-color:#8E8E8E;
width:920px;
height:100px;
clear:both; 
}

css layout

COLLAPSING;
When an element contain in parent element than you add the float to the child element then container element collapse itself. How to solve them there are many ways to solve these problems. Which we discuss below?

FIRST METHOD: TO ADD THE TAG.
By this method you have to add the empty div tag or other tag you cam add but empty div tag is better. After adding this the parent element automatically expand.

SECOND METHOD: TO ADD OVERFLOW PROPERTY:
In this method you have to add overflow property to the parent element. If you set the auto or hidden value to it the parent element automatically expand and contain float element.


THIRF METHOD: TO USE CLEAR PROPERTY;
In the third method we use the pseudo selector (:after) to solve the problem. We apply class to the element and clear the float property and you can also add the id to the element.
.clear:after{
 content: ".";
 display: block; height: 0;
 clear: both;
 visibility: hidden;} 
CONCLUSION;
You can style the layout with float property  and now you can face all the problems related the float.
Please remember in your prayers and don’t forget to share our post with you friends.THANKS!
Read More...

Wednesday 21 May 2014

RESOLVING CSS CONFLICTS

here is the title image
Hi friends!
Welcome back. Today I came with new topic which really help you a lot which about the css conflict. When you add style to the element but it does not apply on it why. You check it many times for bug but there is no bug in your code. There is concept of css which is conflict many people do not about these basic concepts. Today we talk about them and discuss how to use them.

CSS CONFLICTING;

Two are more styles are applied to the same element.
For example;

P{
Font-size:2em;
Color:red;
}
 P{
Font-size:1.8em;
Color:blue;
}

Now question is that which style applied to the element the answer is simple last one will win. The css contain of three basic concepts such as specificity, inheritance and cascade.

CASCADE;

The cascade rules depend upon the order of your css. The last property applied to the element.
For example;

Body{
Font-family:Helvetica;
 }
 P{
Font-family:Georgia;
}
In the above case all the paragraph change with Georgia font and the Helvetica don’t work on the paragraph because the order of css.

SPECIFICITY;

Specificity defines the rules applied to the element.
If the style does not apply to the element the reason is specificity.
If two selectors are applied to the same element the selector with high specificity wins.
If two selectors have equal specificity the last one wins.
For increasing specifity you can use id selector but the inline style has more specificity than the id selector but for the reason we prefer to the id selector for more specificity.

How to count specificity?
The counting specificity is very easy. The each id is equal to the 100,  the each attribute, class and pseudo-class is equal to the 10 and the each element is equal to the one  .

For example;
 P{
Font-size:1.5em;
Color:red;
}
.main p{
Font-size:2em;
Color:yellow;
}
In the above the example the paragraph with class will win because it has more specificity than the paragraph.

INHERITANCE;

For instance you add the properties to the body it inherited to all other properties which are present in the body such as heading tags, paragraph and other tags present in the body tag.
For example;
Body{
Font-family:Helvetica;
Font-size:1.5em;
}
The above properties applied to the all elements which are present in the body tag.

CONCLUSION;
Now you have understanding of the css conflict and how to use them and take fullest advantage of them. Remember in your prayers and don’t forget to share our post with your friends. THANKS



Read More...

Wednesday 14 May 2014

STYLING CSS LINK AND CSS LIST

As we discussed before in html tutorial that the links are the soul of the webpage.

WebPages are containing of links without links webpage is nothing. Links allow us to jump from one page to another page or on same page. Some times we create very large document in order to help the visitor we make links on the same page. Today our topic styling links in css.

What is the links?
Links are the way by which you can jump from one page to another page.

STYLING LINKS

Link should be change by its surrounding such its background-color, color should be change from surrounding text.
There are four types of links property given below;

a:link unvisited link.
a:visited visited link
a:hover mouse over a link.
a:active user has clicked link.

Note
The sequence is important you have to write first link then visited then hover and finally active. You can add the text decoration, background color, text size, font style, font weight etc to the links.

a:link
this is unvisited link

a:link{
color:red;
}

link styling


a:visited
this is the visited link

a:visited{
color:green;
}
color green

a:hover
when users take mouse over link.

a:hover{
color:blue;
}

color blue



a:active
when users clicked the link.

a:active{
color:yellow;
}
yellow color

CSS STYLING LISTS.

Many times we need lists . in html we make lists in css we design them you can add numbering, dot, circle and also you can add images to the lists lets discusse about the styling lists. There are two types of lists in html unordered list or ordered lists.

UNORDERED LISTS;
Unordered lists contain of bullets.
ADDING CIRCLE;
ul {list-style-type:circle;}


bullet style

ADDING SQUARE;
ul {list-style-type:square.}

How to add the image as list item marker?
Yes you can add the image to the list item marker.

ul{
list-style-type:url(bullet.png)
}

adding image

FINAL WORDS;
Friend now you can edit the list item according to your wish. Keep working and remember in your prayers and don’t forget to share our post with your friend.THANKS


Read More...

Sunday 11 May 2014

CSS TEXT FORMATTING

Hi friends Assalam-o-alaikum
Friends today we are going to discuss text formatting in css. How to make the text more readable, beautiful and attractive. For this you have to learn css selector before. In this tutorial we will discuss all the properties about text formatting such as font-family, font color, line-height, and many others. Let’s come to the topic.
 Also visit the css selectors  and text formatting in html.

Text formatting


With css we design the text beautifully. The different property we use to design the text such as text-decoration, font-family, color, text-align, font-size, font-weight, text-transformation, text-indention and many others. Which we discus below.

COLOR PROPERTY

Some times is important to add color to the text. You can write the value of color in hex, rgb and also red. we can add color to text like this,

p{color:red;}
h1 {color: green;}
 
color property

TEXT-ALIGN

This property is used to define the position of text. As you want to add the text left, right or to the centre for this you can use this property.
FOR EXAMPLE
p{
text-align:right;}
h1 {
text-align:center;}
h2{
text-align: left;
}

 
alignment property
TEXT-DECORATION

It is the property which is used to define the decoration of text or for removing the decoration.

FOR EXAMPLE;
For removing text decoration,
 { text-decoration:none;}

Adding decoration to text,
It has three more values overline, line-through, and underline;
    p{
text-decoration:overline;
 }
p{
text-decoration: line-through;
}
p{
text-decoration:underline;
 }
decoration property

Text-Transformation

This property use to change the text in lowercase, uppercase and capitalize the first letter of each word.
EXAMPLE;           
p{
text-transform:uppercase;}
p{
text-transform:lowercase;}
p{
text-transform:capitalize;}

transformation

FONT-FAMILY

To define the font family means that you want to use different types of font. You use the property of font-family (Helvetica, Georgia, Verdana etc).
FOR EXAMPLE
p{
font-family: Helvetica;
 }

font-family

TEXT-SIZE

Yes you can also set the size of text which you want. Size of text define in different units such as em, px , percentage, centimenter, millimeter and points. I prefer you to use the em unit because it change the size of text according to the device.

p{
Text-size:2.5em;
 }

font-size

FONT-STYLE

This property is used to make text oblique, italic and also you can set normal the font.
FOR EXAMPLE;
p{
font-style:italic;
font style

FONT WEIGHT;

It is the property which is used to make text bold or lighter and also set to the normal value to the font.
FOR EXAMPLE;
p{
font-weight:bold;
}
 
font-weight

LINE-HEIGHT

To add the height between to lines we use the line-height property.
FOR EXAMPLE;
p{
line-height:200;
 }
 
property of line

LETTER-SPACING

To add the spaces between the letters we use this property. To separate letters.
FOR EXAMPLE
p{
letter-spacing:5px;
 }
 
property of spacing letter

WORD SPACING

To make the space between the words we use this property.
FOR EXAMPLE
p
{
word-spacing:3px;
}
property to text

 

FINAL WORDS

Now friends you can easily format the text beautiful make you design more efficient please remember in your prayers don’t forget to share our post with your friends keep visiting. THANKS!
Read More...

Friday 9 May 2014

HTML FORMS WITH DETAIL

Html forms are used for website interaction. In this way the visitors can communicate with you. The html forms contain different elements such as first name, last name, password, confirm password, favorite lists, gender etc .html form start with <form> and end with </form>.

<input> this tag contain different attributes such as name, size, maxlength and type. It is used to make input field between form tags.
          Type=  It tells the browser that it is text field, password, submit field.
          Name= Defines the name of field.
          Size=  This attribute used to define the size of input box.

        Maxlength= This is used for maximum character in the input box.

FIRST NAME;

In text type you can add any which in text such as first name, last name etc.
FOR EXAMPLE
First name :< input type=”text” size=”15” maxlength=”30” name=”first name”>
        
Html forms

Password;

In this type you can add the password field in your form which means if you type any thing in the password it appears in the shape of black dots.
FOR EXAMPLE;
First name :< input type=”password” size=”15” maxlength=”30” name=”first name”>
pasword field

 SUBMITTING DATA.
Now little bit your farm is complete but problem is that how we send data and where and adding submitting button.
 There are two type of method of sending data.

  get it sends the data showing its as url. This is easy to hack for hackers.
 Post it send the data without showing its as url.

NOTE
get is on the default if you don’t tell the browser it automatically use get method.

How to define the method of post in form?
You can define with attribute of method just like that <form method=’post’>

Where to send data?
The two type of sending data one is you can send to the email system and this is very easy method. Second is the scripting you can use the script of php, perl, javascript etc.
You use action attribute in form tag.just like that.
EXAMPLE;
<form mehod=’post’ action=’mailto:mohammadwaqar401@gmail.com’>
SUBMIT BUTTON;
Adding submit button again we use input tag between form tags.
EXAMPLE;
<input type=’submit’ value=’submit’>
screenshot

RADIO BUTTON

In the radio button you have only on choice. You give the two option choose your gender one option is male and other is female. If you click on the male it marked and when you click on female it marked the female but unmarked the male.
Forexample

Gender  <input type='radio' name='gender' value='Male'>Male
                       <input type='radio' name='gender' value='Female'>Female
Male or female

CHECK BOX;

In the check you have multiple choice. Just like that tick  your favorites cities.
If there is newyork, London, sydny you can select all of these.

For example;

<input type='checkbox' name='cities' value='Newyorl'>New york <br />
                <input type='checkbox' name='cities' value='Sydny'>Sydny <br />
                <input type='checkbox' name='cities' value='London'>London <br />

html forms

DROPDOWN LISTS;

In this you can add list and you can select one item from the list. Drop down list contain two tags one is select and second is option. Option tag placed between select tag.
For example
  <select name='birthyear'>
<option> 2001</option>
<option> 2002</option>
<option> 2003</option>
<option> 2004</option>
<option> 2005</option>
<option> 2006</option>
<option> 2007</option>
<option> 2008</option>
<option> 2009</option>
<option> 2010</option>
<option> 2011</option>
<option> 2012</option>
<option> 2013</option>
<option> 2014</option>
</select>
dropdown

FINAL WORDS;
Now you know how to make form in html. It is very easy but it need some practice. Keep practicing remember in your prayer and don’t forget to share our post with your friend. Keep Visiting!
Read More...