I have built a small blog/webpage using CSS and HTML, but I seem to have a small problem. I insert images using CSS, and when doing so, I use the following:
#blogpic {
background-image: url(bpic.png);
display: block;
background-repeat: no-repeat;
background-position: center;
padding-top:275px;
text-indent:-9999px;
}
#maintext {
background: none repeat scroll 0 0 #F5F5F5;
margin-top: 75px;
padding: 15px;
text-align: justify;
font-family: 'Ubuntu', sans-serif; font-weight: 400; font-size: 12px;
margin-left: 18%;
margin-right: 19%;
}
In my HTML, I have something like:
<div id="maintext">
<div id="blogpic"></div>
</div>
Everything seems to work fine, but when I resize the window on my broweser, the images get "cut-off" and so does the "maintext" area. I tried googling to find out the reason: but, havent found any so far.
Would appreciate if anyone could point me on how to avoid pictures being cut off when the window resizes.
Sorry if this a html/css 101 question: I am quite new to web programming!