/    Sign up×
Community /Pin to ProfileBookmark

Layout Help: Div Positioning

Alright, my problem is that I need to have 3 images aligned vertically between other images that span the hight of all 3 images. However, just to test it out, I combined the 3 vertical images into one (because theyre going to be in an include). The way I figured I could fit in these 3 vertical images was to put it in a div. However, this div will NOT go in between the other 2 images.

[CODE] <div id=”banner”><img src=”http://www.absolutegamenetwork.com/imgs/agn_bannerleft.jpg” /><div id=”sitecontainer”>
<img src=”http://www.absolutegamenetwork.com/imgs/agn_siteselect375.jpg” /></div><img src=”http://www.absolutegamenetwork.com/imgs/agn_bannerright.jpg” /></div>[/CODE]

There is the section that I want to line up all beside eachother. The image “agn_siteselect375” should fit in between bannerleft and bannerright. But when I put it in the div, it goes on its own line, then pushes bannerright under it.

Here’s the CSS for the Sitecontainer div around the “siteselect” image:

[CODE]#sitecontainer
{
width: 375px;
height: 160px;
}[/CODE]

What code do I need to add to make it fit in between?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jul 26.2008 — We really need a link to see what's happening and what the code looks like.
Copy linkTweet thisAlerts:
@JesseGauthorJul 26.2008 — http://www.absolutegamenetwork.com/agn.htm

I should also add, that I tried putting the whole thing into a div "banner" to try and keep it on one line with no luck. So if I have to take out the div "banner" its no big deal.
Copy linkTweet thisAlerts:
@JesseGauthorJul 26.2008 — Ah, I've gotten it. I needed to add "display: inline;" to the div surrounding the middle picture.
×

Success!

Help @JesseG 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.20,
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,
)...