Mandarin Logo
MainBlogFAQsBox TipsText TricksColor ChartFree GalleryCSS Opacity
TWO CENTS CURRENT ISSUE 2005 | JUL | AUG | SEP | OCT WEST SACRAMENTO CALIFORNIA
a decorative square

Free Gallery: Spare Squares

Free pictures and images for your Blog or Web page. All Mandarin images and pictures here and in the Gallery can be used without permission. Right-click to copy the images or use the copy-and-paste code to link to an image.

Back to Gallery  

Magazine Style

Sometimes we just want a picture to float in the middle of two columns. We dropped the picture down 15 pixels from the natural flow so that it looks good in both Mozilla Firefox and Internet Explorer.

This is the right side text. Haven't you ever wondered how to center the image in your Blog or Web page and let the text wrap around the image? It's easier than you think. The only calculation is to half the size of your picture, and half the size of the column if you don't want to use the width in the copy and paste code.

This is the left side of a two-column layout with an image that is floating in the center. The left and right columns are both floating with half of the image in the left column and half of the image in the right column. There is only one image and inserting the image is relatively easy. It does look best when each column has about the same amount of text.   

And we can type more here or continue to type in the in the columns. I like the way the type wraps around the centered image.

When it's smaller without borders and background colors like we showed here the center floating image looks easier. And it is easy. We do have to contain it in a div so we made this one 400 pixels wide. Most of us have 400 pixels to post in, right? If not then use a width that works in your page and use half of the width for the left column and half for the right column.

The font sizes and background will adjust to the sizes on your page.

If we right click on the image we view the properties to get the dimensions of the image. This image is 160 x 239. So, we will display half of the picture on the left and half on the right. Half of 160 is 80, right? The image isn't altered, only the display of the image.

We defined the post area as 400 pixels wide so that our larger image will fit. We split that in half and now each column is 200 pixels wide.


Link URL   Last Updated: Monday, February 28, 2005
BACK TO TOP
Recent Updates
MAIN BLOG FAQs CSS:Boxes TRICKS About CSS Style Color Chart GALLERY PureText
Validate HTML Validate Style Sheet Elements of Style Yahoo Buzz Google Zeitgeist Lycos 50 TP TP2 TF Technorati Sitemeter
Mandarin Archives 2005: J F M A M J J A S O N D   2004: J F M A M J J A S O N D   2003: J F M A M J J A S O N D  
Clean PC Banners Free Banners Tag Board Gator ColdFusion Fade Images Refer Grouping Web Help Drop Caps