/    Sign up×
Community /Pin to ProfileBookmark

Positioning several images

I’m trying to position several images and a couple of attached documents on a web page which I’m creating – painfully, because I’m a content manager, not a programmer – within Microsoft Content Manager. I can see from numerous messages in the forum that CSS is advocated as the way to go and I’ve tried to get my head around the “float” property, but I can’t seem to adapt it to my requirements.

I’ve attached a gif showing how I want the section of the page to look. The alignment is:
– image 1: top left
– image 2: top, spaced slightly right of image 1
– object 1: aligned with bottom of image 1; centred with image 2
– image 3: top right
– image 4: top, spaced slightly left of image 3
– object 2: aligned with bottom of image 3; centred with image 4

Any thoughts, advice or – better still – solutions gratefully received.

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@layman_only_authorDec 09.2004 — Ahem, this time with the attachment.

[upl-file uuid=a1706dd3-b259-436b-b5db-079618332b48 size=3kB]image-layout.gif[/upl-file]
Copy linkTweet thisAlerts:
@NogDogDec 09.2004 — You could play around with absolute positioning, something like:
<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html lang='en'&gt;
&lt;head&gt;
&lt;META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'&gt;
&lt;title&gt;Absolute Positions&lt;/title&gt;
&lt;style type="text/css"&gt;
div.bigimg {
border: 2px blue solid;
width: 150px;
height: 200px;
position: absolute;
}
div.smallimg {
border: 2px blue solid;
width: 60px;
height: 80px;
position: absolute;
}
div.object {
border: 2px red solid;
width: 50px;
height: 50px;
position: absolute;
}
p {
margin: 10px 2px;
width: 100%;
text-align: center;
font-size: small;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=bigimg style="left: 15px; top: 15px;"&gt;&lt;p&gt;Image 1&lt;/p&gt;&lt;/div&gt;
&lt;div class=smallimg style="left: 200px; top 15px;"&gt;&lt;p&gt;Image 2&lt;/p&gt;&lt;/div&gt;
&lt;div class=smallimg style="left: 300px; top 15px;"&gt;&lt;p&gt;Image 3&lt;/p&gt;&lt;/div&gt;
&lt;div class=bigimg style="left: 400px; top: 15px;"&gt;&lt;p&gt;Image 4&lt;/p&gt;&lt;/div&gt;
&lt;div class=object style="left: 206px; top: 164px;"&gt;&lt;p&gt;Object1&lt;/p&gt;&lt;/div&gt;
&lt;div class=object style="left: 306px; top: 164px;"&gt;&lt;p&gt;Object2&lt;/p&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@layman_only_authorDec 24.2004 — Just a quick note, NogDog, to say thanks - I'm sure you'll have justifiably thought me an ungrateful $£@*&! for not replying sooner, but I've had my hands very full with the other bits of my job that don't allow me the time that I ought to devote to sorting out the website.

Your suggestions look good and, very soon, I hope, I'll get a chance to try them out!

Happy Christmas.
×

Success!

Help @layman_only_ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...