5
How do I create an 800px high EMPTY+TRANSPARENT block per 1000px width? And because the code below doesn’t work for that?
html
<div class="block"></div>
css
.block {
height: 800px;
width: 1000px;
}
With that, I’m trying to create spaces above and below the div .vitrine
:
<div class="block"></div>
<div class="vitrine"></div>
<div class="block"></div>
the code you posted works, you want it transparent ? for what ?
– Alan PS
take a look: http://jsfiddle.net/qnF3p/
– Alan PS
For example, to create an empty area. But also to learn more about html and css. Around the 2000s I used a transparent gif for cells to get the size I wanted. I thought this was no longer necessary.
– realmeidaprado
good, with the background-color works. I can use an opacity later to leave transparent. Color, or some fill make the turn of the transparent gif. Curious. Thanks!
– realmeidaprado
without background-color also works, check it out: http://jsfiddle.net/qnF3p/3/
– Alan PS
how strange. does not work with the code below... wanted to create a space before and after the display case <body> <div class="block"></div> <div class="display case"></div> <div class="block"></div> </body> &------- . display case { height: 350px; width: 100%; background-color: #222; } . block { height: 800x; }
– realmeidaprado
a "p" is missing at class block - . block { height: 800px; } http://jsfiddle.net/qnF3p/4/
– Alan PS
this p now was not in the code but really works what I wrote up there. Thanks for the help!
– realmeidaprado