HTML question
HTML question
Out of context: Reply #4
- Started
- Last post
- 19 Responses
- vaxorcist0
<style>
.chv{
width:200px;
height:100px;
position:absolute;
left:50%;
top:50%;
margin-left:-100px;
margin-top:-50px;
border:solid 1px red;
}
</style><div class="chv">
Center horizontal and vertical align
</div>- Doesnt work.CygnusZero4
- Ah does work, but not with an external CSS file.CygnusZero4
- That should absolutely work. Is your flash movie in a div?ETM
- Yes in a div, in the div you created.CygnusZero4
- External or not, should make no difference. Check your paths.ETM
- Yes this should definitely work. You specifiy width and height to be dimensions of the flash file, and margin-left/top to negative half the heights.orrinward2
- negative half the heights.orrinward2