Solved

Position and Float img

Posted on 2007-11-18
4
3,214 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

860 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