php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Css Cascade styling sheet forum intro to Id's
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Css Forum for students discusion here's an example about the id's which will 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
[Image: css_is_awesome_mug-p16871643507198192821yff_400.jpg]
[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>
<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>
[/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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Class usage and it's example in css latest version in css forum IQ-test 0 2,550 11-26-2010, 05:48 PM
Last Post: IQ-test

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support