ianhaney
06-03-2014, 08:47 AM
Hi
I have been stuck for a while on this issue
I have a main div with two divs inside it and am trying to get the main and inside divs to expand to fit the content in but am having no joy
for example the home page does not have as much content as my sub page
I have pasted the HTML and CSS below
<div id="container-pages">
<div class="top-point">
<img class="top-point" src="images/top-point-1.png" alt="" title="">
</div>
<div class="bottom-point">
<img class="bottom-point" src="images/bottom-point-.png" alt="" title="">
</div>
</div>
CSS
#container-pages {
background: #598288;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px;
height: 835px;
width: 957px;
margin: 150px 21px 0 23px;
}
.top-point {
margin: -92px 0 0 200px;
}
img.top-point {
margin: -71.6px 0 0 182px;
position: absolute;
height: 80px;
}
.bottom-point {
margin: 460px 0 0 200px;
}
img.bottom-point {
margin: 54.6px 0 0 -440px;
position: absolute;
height: 80px;
}
Thank you in advance
Kind regards
Ian
I have been stuck for a while on this issue
I have a main div with two divs inside it and am trying to get the main and inside divs to expand to fit the content in but am having no joy
for example the home page does not have as much content as my sub page
I have pasted the HTML and CSS below
<div id="container-pages">
<div class="top-point">
<img class="top-point" src="images/top-point-1.png" alt="" title="">
</div>
<div class="bottom-point">
<img class="bottom-point" src="images/bottom-point-.png" alt="" title="">
</div>
</div>
CSS
#container-pages {
background: #598288;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px;
height: 835px;
width: 957px;
margin: 150px 21px 0 23px;
}
.top-point {
margin: -92px 0 0 200px;
}
img.top-point {
margin: -71.6px 0 0 182px;
position: absolute;
height: 80px;
}
.bottom-point {
margin: 460px 0 0 200px;
}
img.bottom-point {
margin: 54.6px 0 0 -440px;
position: absolute;
height: 80px;
}
Thank you in advance
Kind regards
Ian