Practica HTML y Css
Practica HTML y Css
<!DOCTYPE html PUBLIC "-/pp/W3C//DTD XHTML 1.0 Strict//EN" > < html > <head> <title></title> <style type= 'te xt/css '> h1::first-letter, p::first-letter { text-transform: capitalize; } h1 { font-weight: normal; text-align: center; text-decoration: underline; } p { text-indent: 25 px; text-align: justify; letter-spacing: 1 px; word-spacing: 5 px; } p::first-letter { font: 120 %; } </style> </head> < body > <h1> this is the title</h1> <p>This is a test. </p> </ body > </ html >
display: block; } #header li { float : left; background: yellow; margin: 0 ; padding: 0 ; } #header a { display: block; background: gold; padding: 5 px 15 px; color: #ccc; text-decoration: none; } #header #current { background: red; } #header #current a { background: pink; color: black; } </style> </head> < body > <div id= "header" > <ul> <li><a href= "http://,....." >Home</a></li> <li><a href= "http://...." >Home</a></li> <li><a href= "http://...." >Home</a></li> <li><a href= "http://...." >Home</a></li> <li id= "current" ><a href= "http://www.." >Home</a></li> <li><a href= "http://..." >Home</a></li> </ul> </div> </ body > </ html > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd" > < html xmlns= "http://www.w3.org/1999/xhtml" xml:lang= "en" lang= "en" > <head> <meta http-equiv= "content-type" content= "text/html;charset=iso-8859-1" /> <style type= 'te xt/css '> ul { width: 100 px; list-style: none; position: relative; } li { padding-right: 5 px }
3.
ul li a { display: block; background-color: #eee; text-indent: 5 px; height: 20 px; line-height: 20 px; color: # 000 ; text-decoration: none; } ul li a:hover { background-color: #ccc; } span { visibility: hidden; position: absolute; width: 5 px; height: 20 px; right: 0 ; } span.a { background: red; top: 0 } span.b { background: green; top: 20 px } span.c { background: blue; top: 40 px } span.d { background: yellow; top: 60 px } span.e { background: pink; top: 80 px } span.f { background: orange; top: 100 px } ul li a:hover span { visibility: visible } </style> </head> < body > <ul> <li><a href= ''> A<span class = "f" ></span></a></li> <li><a href= ''> B</span><span class = "e" ></span></a></li>
<li><a <li><a <li><a <li><a </ul> </ body > </ html >
= = = =
< body > <h2>Example below of fixed width floated menu</h2> <ul id= 'na v2 '> <li class = "selected" ><a href= "" title= "" >Home</a></li> <li><a href= "" >About Us</a></li> <li><a href= "" >Contact</a></li> <li><a href= "" >More</a></li> <li class = "last" ><a href= "" >Stuff</a></li> </ul> </ body > </ html >
#banner { margin-top: 0 ; margin-bottom: 0 ; background-color: # 900 ; border-bottom: solid 1 px # 000 ; padding: 5 px 5 px 5 px 10 px; line-height: 75 %; color: #fff; } #sub_banner { background-color: #ccc; border-bottom: solid 1 px # 999 ; font-size: .8 em; font-style: italic; padding: 3 px 0 3 px 10 px; } #content { position: absolute; margin-left: 18 %; width: 40 %; top: 100 px; padding: 5 px; } #nav1 { position: absolute; width: 30 %; left: 60 %; top: 100 px; padding: 5 px; } #nav2 { position: absolute; padding: 5 px 5 px 5 px 10 px; top: 100 px; width: 15 %; } #footer { text-align: center; padding-top: 7 em; } .warning { font-weight: bold; color: red; } .title { font-size: 120 %; } .content { font-family: Verdana, Arial, sans-serif; margin-left: 20 px; margin-right: 20 px; } .footer { font-size: 75 %; }