- This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
Viewing 12 posts - 1 through 12 (of 12 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi, thanks for any help first off. I’m trying to position two images side by side (column next to column) in CSS. I’m linking to an external style sheet. I tried searching the web but none of the code I try works :/
Like this? http://jsfiddle.net/joshnh/rvZ2Z/
Yeah, I’m trying to position just two images next to each other without leaving to much empty space. Thanks for that site. Looks like you can test css and html code right inside, which seems immensely helpful. I’m trying to figure out the CSS code.
Do you have a link to the page your are working on?
Give us a link via bitly or some other url shortening devices :) It could be your struggling with code that is getting in your way.
Thanks! Here is what I’m working with:
Here is the HTML part:
And here is the CSS part:
#leftplacement{
width:100%;
float:left;
}
#rightplacement{
width:100%;
float:right;
}
Here is the HTML part:


I’m not sure about “sidebar” as I’m working off some other code.
Remove the width:100%;
from the DIVs declarations and they should end up on the same line (if the container has enough room, of course).
Oh, wow. It worked! Thank you so much. What was throwing me off now I see was setting the width. I read that you should always have a width set. But anyways, thank you!