Solved

Position and Float img

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

"I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now