SEO Class in Chicago, IL
Learn How To Optimize Your Website on July 26, 2013
High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!
Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
Simple Style Sheet Question
#1
Posted 03 December 2004 - 01:55 PM
#2
Posted 03 December 2004 - 02:19 PM
post code, it's easier than explaining
<style type="text/css">
.image_block {
position:relative;
width:150px;
float:left;
margin:0px 10px 10px 0px;
}
.image {
position:relative;
float:left;
clear:right;
}
.caption {
float:left;
width:100%;
text-align:center;
}
</style>
HTML
<div class="image_block">
<div class="image">
<img src="/images/image.gif">
<div class="caption">
This is a caption
</div>
</div>
</div>
This text will wrap itself around the image
(I will get all this finished soon !!!)
#3
Posted 03 December 2004 - 02:41 PM
I had to do two versions, one to float left and the other right, but that worked nicely.
#4
Posted 03 December 2004 - 10:41 PM
If I wanted to define this kind of image block in a CSS file so I could apply it to different sized images, would I be able to spec the width of the block in the html page?
L.
#5
Posted 04 December 2004 - 04:32 AM
width:150px;
}
or as an alternative you can create some width classes in your CSS file and combine them.
width:100px;
}
.w_150 {
width:150px;
}
.w_200 {
width:200px;
}
<div class="image_block w_200"><img ...></div>
both methods have their own merits depending on your particular requirements.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









