/    Sign up×
Community /Pin to ProfileBookmark

When you have pictures you can easily have them sit right beside each other. I am trying to figure out an easy way to do that with div tags (and whats inside them). I would prefer to not use positioning because I am still trying to figure out what sizes I want the images that appear inside them to be. For me I have 5 div tags that instead of being side to side, are one on top of the other.

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@CentauriSep 12.2008 — Float them to the left :[CODE].classname {
float: left;
}[/CODE]
The element that is to follow these should also get clear:both applied to its style.
Copy linkTweet thisAlerts:
@jonthegamerauthorSep 12.2008 — thanks, if i give each div this it will also work
[CODE]display:inline;[/CODE]
Copy linkTweet thisAlerts:
@CentauriSep 12.2008 — Yes, that does also work to stack horizontally, but it also does not allow you to set sizes if you need to.
×

Success!

Help @jonthegamer 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.8,
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,
)...