Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS css problem with div

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35891
    tanyx
    Member

    Hello.
    I have problem with css with two div.
    My first div contain texts while second div contains images. I need to put the image div in top right corner of text div.

    My div structures as below :

    text text text .... more text

    image image

    I want to archieve this :

    text text – image –
    text text – image –
    text text text text
    text text text text
    text text text text

    I illustred this problem with an image. Link at : http://www.freeimagehosting.net/8gpb3

    Please help me to solve this problem. Thanks.

    #101638
    Paulie_D
    Member

    Put the images div inside the text div and float the images right.

    Here you go: http://jsfiddle.net/Paulie_D/w9mQt/

    #101647
    tanyx
    Member

    Thanks Paulie_D and andy_unleash. Both of you have similar solution by putting image div inside text div but my situation not allow me to do so . Both my div is independent div and can not put one inside another. Any idea how to solve this ? Thanks again.

    #101659
    wolfcry911
    Participant

    can you place the images div before the text div in the source order? if so, do that and float the images div right

    #101744
    Manojnaanak
    Participant

    .right{
    float:right;
    margin-left:10px;
    margin-bottom:10px;}

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.