Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

CSS Cascade styling sheet forum intro to Id's

View previous topic View next topic Go down

GMT + 3 Hours CSS Cascade styling sheet forum intro to Id's

Post by WikiLeaks Sun May 29, 2011 1:13 pm

Css Forum for students discusion here's an example about the id's which will virtual help all students to understand that how id's are working. For that first we have to define the id inside the header and then we can call it inside the body. See the code of CSS



[You must be registered and logged in to see this image.]



Code:
<!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>
<style type="text/css">
#para1
{
   
   text-align:center;
   color:red;
   }
   </style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<p id="para1">Hello World!</p>
<p>This paragraph is not using Style!</p>
</body>
</html>

It shows that the id name and declaration inside the header is Para1 and then we call id inside the paragraph tag which is id = " para1".
Other paragraph is not effected by style
WikiLeaks
WikiLeaks
Monstars
Monstars

Posts : 26
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum