prateek88
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by prateek88
-
-
Yeah, you are right the path wasn't correct.....sorry for wasting your time for such a stupid problem....
-
Hello everyone, I am playing with some HTML & CSS code in order to learn practically. I am not getting why the background for the content class i defined in the .Css file isnt visible.
[/font][/color]*{ margin:0; padding:0;}html {[/font][/color][color=#000000][font=verdana, geneva, lucida,]}body { min-height: 900px; font:14px/1.3 Arial,sans-serif; background: #000000 url(images/main_bg.jpg) repeat-x;}header { box-shadow: 0 -1px 2px #111111; color:#fff; display:block; height:70px; position:relative; width:100%; z-index:100;}header h2{ font-size:22px; font-weight:normal; left:50%; margin-left:-400px; padding:22px 0; position:absolute; width:540px;}header a.stuts,a.stuts:visited{ border:none; text-decoration:none; color:#fcfcfc; font-size:14px; left:50%; line-height:31px; margin:23px 0 0 110px; position:absolute; top:0;}header .stuts span { font-size:22px; font-weight:bold; margin-left:5px;}.container { height: auto; margin: 0px auto; width: 957px; }.content{height: 900px;margin: auto auto;width: 957px;background: url(images/content_bg.jpg) top center no-repeat;color:#fcfcfc;}[/font][/color][color=#000000][font=verdana, geneva, lucida,]footer{background-color: #111111;bottom: 0;box-shadow: 0 -1px 2px #111111;height: 45px;left: 0;position: fixed;width: 100%;z-index: 100000;display: block;}[/font][/color][color=#000000][font=verdana, geneva, lucida,]footer h2{color: #EEEEEE;font-size: 14px;font-weight: normal;left: 50%;margin-left: -400px;padding: 13px 0 0;position: absolute;width: 540px;}[/font][/color][color=#000000][font=verdana, geneva, lucida,]footer h2 i{font-style:normal;color:#888;}[/font][/color][color=#000000][font=verdana, geneva, lucida,]footer a.tzine,a.tzine:visited{color: #999999;font-size: 12px;left: 60%;margin: 16px 0 0 110px;position: absolute;text-decoration: none;top: 0;}[/font][/color][color=#000000][font=verdana, geneva, lucida,]footer a i{color:#ccc;font-style: normal;}[/font][/color][color=#000000][font=verdana, geneva, lucida,]footer a i b{color:#c92020;font-weight: normal;}[/font][/color][color=#000000][font=verdana, geneva, lucida,]
/////////////////////////////////////////////////HTML HTML////////////////////////////////////////////////////
<!DOCTYPE html><html lang="en" > <head> <meta charset="utf-8" /> <title>Welcome</title> <link href="styles/layout.css" rel="stylesheet" type="text/css" /> <link href="styles/menu.css" rel="stylesheet" type="text/css" /> </head> <body> <header> <h2>XpertCareers</h2> </header> <div class="container"> <ul id="nav"> <li><a href="#">Home</a></li> <li><a class="hsubs" href="#">Menu 1</a> <ul class="subs"> <li><a href="#">Submenu 1</a></li> <li><a href="#">Submenu 2</a></li> <li><a href="#">Submenu 3</a></li> <li><a href="#">Submenu 4</a></li> <li><a href="#">Submenu 5</a></li> </ul> </li> <li><a class="hsubs" href="#">Menu 2</a> <ul class="subs"> <li><a href="#">Submenu 2-1</a></li> <li><a href="#">Submenu 2-2</a></li> <li><a href="#">Submenu 2-3</a></li> <li><a href="#">Submenu 2-4</a></li> <li><a href="#">Submenu 2-5</a></li> <li><a href="#">Submenu 2-6</a></li> <li><a href="#">Submenu 2-7</a></li> <li><a href="#">Submenu 2-8</a></li> </ul> </li> <li><a class="hsubs" href="#">Menu 3</a> <ul class="subs"> <li><a href="#">Submenu 3-1</a></li> <li><a href="#">Submenu 3-2</a></li> <li><a href="#">Submenu 3-3</a></li> <li><a href="#">Submenu 3-4</a></li> <li><a href="#">Submenu 3-5</a></li> </ul> </li> <li><a href="#">Menu 4</a></li> <li><a href="#">Menu 5</a></li> <li><a href="#">Menu 6</a></li> <li><a href="Login.html">Login</a></li> <div id="lunar"></div> </ul> </br> </div> <div class="content"> hello world hello worldhello worldhello worldhello </br> hello world hello worldhello worldhello worldhello </br> hello world hello worldhello worldhello worldhello </br> hello world hello worldhello worldhello worldhello </br> </div> <footer> <h2>© 2012 <i>TechGeeks<i> |</h2> <a class="tzine">Design by TechGeeks Team </footer> </body></html>
-
Oh, yes that will surely save me from lot of trouble thanks for the tip.
-
Many thanks, for the quick reply. It is working now. Is there any more efficient way to achieve this as i will be using too many rows and cells according to the seats.
-
hello, I want to develop a script which could change the each and every <td> cell in a table when clicking.What i am considering to achieve this is by assigning each <td> an id and use it as a function parameter, so that in function i could change the color of that particular cell. Something like this:
<!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" content="text/html; charset=utf-8" /><title>Untitled Document</title><script type="text/javascript">function changeColor(id){var cell = document.getElementById(id);cell.style.background = red;//cell.style.color = black;}</script></head> <body><table><tr><td id='cell' onclick="changeColor('cell')">a1</td></tr></table></body></html>
but since onclick would not work for the <td> so what else better way to perform this. If someone could suggest better alternative for achieving sucha a thing it would be very kind. Note: All this to start my online movie ticket booking self learning project, so please guide me to the appropriate directionThanks in advance
How to stop overlapping two images
in CSS
Posted
hello everybody, I am trying to add an image on a login page but when the browsers viewport is resized the image gets overlapped.