Solved

Position and Float img

Posted on 2007-11-18
4
3,199 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
Comment Utility
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
Comment Utility
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
Comment Utility
This may be what you're looking for;

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

Author Comment

by:jezella
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
remove tan to left of navigation 2 38
Remove 'disabled' attribute 6 26
Animate a Title 7 33
Problem to picture file 3 37
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
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 to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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…

771 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

11 Experts available now in Live!

Get 1:1 Help Now