Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/05/2010, 12:17
xyz3d
 
Fecha de Ingreso: mayo-2010
Mensajes: 24
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: Posicionar imagen CSS/html

En este style.css copié la parte del slideshow...

Código CSS:
Ver original
  1. body {
  2.     font-family: tahoma, helvetica, arial, sans-serif;
  3.     font-size: 11px;
  4.     text-align: center;
  5.     background: url(images/page_bg.jpg);
  6.     color: #6f6f6f;
  7. }
  8.  
  9. html, body, #wrapper, h1, #nav-top, #nav-top li, #nav-left, #nav-top li {
  10.     margin: 0;
  11.     padding: 0;
  12.     list-style: none;
  13. }
  14.  
  15. th, td {
  16.     font-size: 11px;
  17. }
  18.  
  19. img { border: 0; }
  20.  
  21. #wrapper {
  22.     margin: 16px auto;
  23.     text-align: left;
  24.     width: 750px;
  25.     position: relative;
  26. }
  27.  
  28. h1, h2, h3 {
  29.     font-size: 12px;
  30. }
  31.  
  32.  
  33. h1 {
  34.     margin: 0;
  35.     padding: 0;
  36. }
  37.  
  38. h2 {
  39.     margin: 0 0 0 0;
  40.     padding: 0;
  41. }
  42.  
  43. h3 {
  44.     padding: 4px 0 0 0;
  45. }
  46.  
  47. p {
  48.     margin: 1em 0;
  49.     padding: 0;
  50. }
  51.  
  52. .block {
  53.     display: block;
  54. }
  55.  
  56. .clear {
  57.     clear: both;
  58.     height: 1px;
  59.     padding-top: 0;
  60.     margin-top: 0;
  61.     margin-bottom: 0;
  62.     font-size: 1px;
  63.     line-height: 1px;
  64. }
  65.  
  66. * html .clear {
  67.     margin-top: -5px;
  68.     margin-bottom: -4px;
  69. }
  70.  
  71. .left {
  72.     float: left;
  73.     margin: 1px 8px 0px 0px;
  74. }
  75.  
  76. .softright {
  77.     text-align: right;
  78. }
  79.  
  80. .readmore {
  81.     text-align: right;
  82. }
  83.  
  84. /* ***** */
  85.  
  86. body {
  87.     background: #212e16;
  88.     color: #251200;
  89. }
  90.  
  91. #wrapper {
  92.     width: 780px;
  93.     background: #AD803D;
  94. }
  95.  
  96. a {
  97.     color: #422100;
  98. }
  99.  
  100. a:hover {
  101.     color: #231201;
  102. }
  103.  
  104. #body #events .readmore a, #body .readmore a, #hotstuff .readmore a {
  105.     color: #e2c3a5;
  106.     text-decoration: none;
  107. }
  108.  
  109. #body .readmore a:hover, #body #events .readmore a:hover, #hotstuff .readmore a:hover {
  110.     text-decoration: underline;
  111. }
  112.  
  113. /* header */
  114.  
  115. #slideshow {
  116.     position:relative;
  117.     height:299px;
  118.     width: 291px;
  119. }
  120.  
  121. #slideshow IMG {
  122.     position:absolute;
  123. height:299px;
  124. width: 291px;
  125.     top:0;
  126.     left:0;
  127.     z-index:8;
  128.     opacity:0.0;
  129. }
  130.  
  131. #slideshow IMG.active {
  132.     z-index:10;
  133.     opacity:1.0;
  134. }
  135.  
  136. #slideshow IMG.last-active {
  137.     z-index:9;
  138. }
  139.  
  140.  
  141. #header h1 {
  142.     text-align: right;
  143. }
  144.  
  145. #header #nav {
  146.     font-size: 9px;
  147.     text-align: center;
  148.     background: #170E01;
  149.     color: #D4A66F;
  150.     font-weight: bold;
  151.     width: 489px;
  152.     position: absolute;
  153.     top: 86px;
  154.     left: 291px;
  155.     padding: 9px 0 10px 0;
  156.     margin: 0;
  157.     border-top: 1px solid white;
  158.     border-bottom: 1px solid white;
  159. }
  160.  
  161. #header #nav li {
  162.     display: inline;
  163. }
  164.  
  165. #header #nav a {
  166.     color: #D4A66F;
  167.     text-decoration: none;
  168. }
  169.  
  170. #header #nav a:hover {
  171.     color: #fff;
  172.     text-decoration: underline;
  173. }
  174.  
  175. #header #welcome {
  176.   position: absolute;
  177.   top: 122px; left: 291px;
  178.   width: 470px; height: 173px;
  179.   overflow: auto;
  180. }
  181.  
  182. #header #welcome h2 {
  183.     padding: 0.2em 0 0 0;
  184.     margin: 0;
  185.     line-height: 1;
  186. }
  187.  
  188. #header #welcome p {
  189.     margin: 0.5em 0;
  190. }
  191.  
  192. * html #header #welcome p {
  193.     margin: 0.5em 0;
  194. }
  195.  
  196. #header #welcome p {
  197.     padding-left: 2em;
  198. }
  199.  
  200. /* body */
  201.  
  202. #body {
  203.     position: relative;
  204.     color: #251200;
  205.     background: url(images/body_bg.gif) repeat-y;
  206. }
  207.  
  208. #body-i {
  209.     width: 100%;
  210.     background: url(images/photo.jpg) top right no-repeat;
  211. }
  212.  
  213. #body #hevents {
  214.     position: absolute;
  215.     top: 0; left: 291px;
  216. }
  217.  
  218. * html #body #hevents {
  219.     position: relative;
  220.     top: 0; left: 0;
  221.     margin-top: -32px;
  222. }
  223.  
  224. #body #specials {
  225.     float: left;
  226.     width: 286px;
  227.     margin-left: 2px;
  228.     display: inline;
  229. }
  230.  
  231. #body #events {
  232.     float: left;
  233.     width: 235px;
  234.     margin-left: 10px;
  235.     display: inline;
  236. }
  237.  
  238. #body .imagebox {
  239.     padding: 2px 8px 2px 100px;
  240.     margin: 2px 0;
  241.     background: #9b6f2d 4px no-repeat;
  242. }
  243.  
  244. #body h3, #body p {
  245.     margin: 0 0 0.2em 0;
  246. }
  247.  
  248. #body #events a {
  249.     color: #ce9b5e;
  250. }
  251.  
  252. #body #events a:hover {
  253.     color: #fff;
  254. }
  255.  
  256. #events .readmore {
  257.     margin-bottom: 0;
  258. }
  259.  
  260. /* hotstuff */
  261.  
  262. #hotstuff {
  263.     width: 100%;
  264.     background: url(images/hotstuff_bg.gif) repeat-y;
  265. }
  266.  
  267. * html #hotstuff {
  268.     padding-bottom: 10px;
  269. }
  270.  
  271. #hotstuff h2 {
  272.     background: #3b2000;
  273.     border-top: 1px solid #fff;
  274. }
  275.  
  276. * html #hotstuff h2 {
  277.     width: 100%;
  278. }
  279.  
  280. #hotstuff .imagebox {
  281.     padding: 2px 8px 2px 103px;
  282.     margin: 2px 0;
  283.     background: 4px no-repeat;
  284.     float: left;
  285.     width: 200px;
  286. }
  287.  
  288. #hotstuff #hot-one   { width: 180px; }
  289. #hotstuff #hot-two   { width: 140px; margin-left: 2px; }
  290. #hotstuff #hot-three { width: 120px; margin-left: 2px; }
  291.  
  292. * html #hotstuff #hot-one   { width: 290px; w\idth: 180px; }
  293. * html #hotstuff #hot-two   { width: 250px; w\idth: 140px; }
  294. * html #hotstuff #hot-three { width: 230px; w\idth: 120px; }
  295.  
  296. #hotstuff h3, #hotstuff p {
  297.     margin: 0 0 0.2em 0;
  298. }
  299.  
  300. * html #spacer {
  301.     margin-top: 8px;
  302. }
  303.  
  304. /* footer */
  305.  
  306. #footer {
  307.     padding-bottom: 2em;
  308. }
  309.  
  310. #footer, #footer a {
  311.     color: #986D6D;
  312. }
  313.  
  314. #footer a:hover {
  315.     color: #fff;
  316. }