| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
|
|
#5 (permalink) |
|
Notorious?
|
Related question: I, too, am trying to get two div's to display inline. Problem is, they contain only images; so when I do a display:inline the divs display fine, but the images have a little space around them (a la no display:block). When I apply display:block to divname img, the image divs stack on top of each other. Thoughts? Now adding "eh?" to the end of my sentences.
|
|
|
|
#9 (permalink) | |
|
hmmm...
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
|
Quote:
nobody's ever stickmus so it makes choosing usernames for things pretty easy... mus was for music which I used to do but haven't really got the time any more. My old and out of date music site is www.mistercut.com |
|
|
|
|
#10 (permalink) |
|
Notorious?
|
I did it! For those wondering, here's how: I had both images in one containing div, to which I applied all my positioning styles to orient and size it correctly on the screen. Then I put both images inline, with no divs around them, and gave them both an id (for here i put img1 and img2). Then I gave them these styles: #img1{ margin: 0px; padding: 0px; } #img2{ position: absolute; right: 0; margin-right: 5px; } [Edit: trimmed the stylesheet code.] Anyhow, this solution worked perfectly in PC IE,Firefox and Mac IE,Safari,Firefox without any weird margins/padding. Yay. Now adding "eh?" to the end of my sentences.
|
|
![]() |