Solved

Position and Float img

Posted on 2007-11-18
4
3,223 Views
Last Modified: 2008-07-12
Another positioning question.  If I have a div, is it possible to float 4 images so that 1 image is in each of the four corners of this div and at the same time have text flow around the 4 images.

So far I have managed to get 2 images to display top left and top right by using display:inline and float:left plus display:inline and float:right.

Many thanks

AJ
0
Comment
Question by:jezella
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Assisted Solution

by:ToastedWeb
ToastedWeb earned 100 total points
ID: 20307431
you should use 4 containers inside 1 main container, and give them absolute position... that is the way I would do it.
0
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 300 total points
ID: 20307637
You can use float to position the top images, but not the bottom images.

You can use absolute positioning to place the bottom images, but that means that the text will not flow around the images.

Specifying display:inline; has no effect when using float. All floated elements are block elements.

(However, specifying display:inline; on floated elements is sometimes used to circumvent rendering bugs in Internet Explorer. Although it doesn't change the display mode of the element, it affects the hasLayout property.)
0
 
LVL 3

Assisted Solution

by:Mr_Splash
Mr_Splash earned 100 total points
ID: 20309969
This may be what you're looking for;

http://virtuelvis.com/gallery/css/rounded/
0
 

Author Comment

by:jezella
ID: 20345900
Sorry for not getting back sooner members, been away for a few days.  Your comments are appreciated and understood.

Many thanks.

AJ
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question