Ik weet niet of deze vraag hier hoort, maargoed..
Op mijn frontpage worden berichten getoond (videoberichten) met tekst uiteraard, en een video (float: right). Onder de tekst staat ook de datum, en erboven de titel. Nu is mijn probleem, dat als de tekst kort is, de video groter is dan de div waar hij in is geplaatst en de datum komt dan ook naast de video te staan ipv en rechts onder.
Mijn opbouw van een bericht is:
CSS:
Screenshots:
ie6
ff2
Wie kan mij helpen?
Bvd, Riccardo.
Op mijn frontpage worden berichten getoond (videoberichten) met tekst uiteraard, en een video (float: right). Onder de tekst staat ook de datum, en erboven de titel. Nu is mijn probleem, dat als de tekst kort is, de video groter is dan de div waar hij in is geplaatst en de datum komt dan ook naast de video te staan ipv en rechts onder.
Mijn opbouw van een bericht is:
Code:
<div> //div waar het hele bericht in staat
<p><video></p> //video style: float: right
<h1>titel</h1>
<message> (gewoon tekst tussen <p></p>)
<date> (div, float: right)
</div>
CSS:
Code:
body {
background: url(images/back.png) center top repeat-y;
margin: 0;
text-align: center;
clear: both;
}
div.main {
padding: 30px 50px;
}
#container {
margin: 0px auto;
width: 930px;
background: #FFFFFF;
}
#header {
background-image: url(images/head.png);
height: 150px;
}
#menu {
padding: 0 30px;
text-align: center;
}
ul{
margin: 0;
padding: 0;
}
#content {
margin-top: 40px;
}
#title {
height: 60px;
background-image: url(images/contentback.png);
text-align: left;
margin-bottom: 20px;
}
h1 {
font-family: "trebuchet ms";
font-size: 18pt;
color: black;
font-weight: normal;
margin: 0px;
padding: 0 20px;
padding-top: 10px;
text-align: left;
}
h2 {
padding: 15px 20px;
font-family: "trebuchet ms";
font-size: 18pt;
color: black;
font-weight: normal;
margin: 0px;
}
p {
text-align: left;
font-family: "trebuchet ms";
font-size: 10pt;
color: black;
padding: 0 20px;
padding-top: 10px;
}
#item {
background-color: #F8F8F8;
border: 1px solid #C0C0C0;
padding: 10px 10px;
margin-top: 20px;
margin-left: 20px;
margin-right: 20px;
font-family: "trebuchet ms";
font-size: 10pt;
color: black;
}
#itemtitle {
font-family: "trebuchet ms";
font-size: 10pt;
color: black;
font-weight: bold;
}
#msgdate {
text-align: right;
font-family: "trebuchet ms";
font-size: 8pt;
color: black;
padding: 10px 20px;
}
#msg {
background-image: url(images/itemback.png);
margin-bottom: 15px;
height: auto;
}
#msg embed, object {
float: right;
}
Screenshots:
ie6
ff2
Wie kan mij helpen?
Bvd, Riccardo.
Laatst bewerkt: