Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Results 1 to 3 of 3

Thread: My CSS floats are affecting other DIVs

  1. #1
    Wolfie is offline Junior Member
    Join Date
    Nov 2010
    Posts
    1

    Unhappy My CSS floats are affecting other DIVs

    Hi, have run a search on this but nothing came up so heres my question.

    I have a website written in html and I'm working on version 2 which will be done with CSS. Now what I have so far is 5 levels of divs which gives me a middle space with a 200px column on both sides. Each side column is a different block/div.

    Now I want to have some photos running down both side columns, and there are also some photos in the text in the middle section too.

    So I go to the first section and put in photos. They have to be designated to 'float left' or else the rest of the divs move below them. OK so far so good. So then I put in the right hand photos in a different div and designate them 'float right'. However they are basing their positioning on the photos on the left side and starting below them!

    OK I managed to cure that by positioning them relatively. HOWEVER now the pictures in the text are positioning themselves below the ones in the right column and away from their places in the text!!!!!!. I can't cure that by relative positioning because when they move back up, they obscure the text.

    Now as I understand it, elements in separate DIVs are supposed to be exclusive so whats going on?

    I can provide code if necessary

    Wolfie

  2. #2
    Manuel - Regdotter is offline Administrator
    Join Date
    Jul 2010
    Posts
    126

    Default

    Probably worth looking up some 3 column web page how to's as it would be simpler than trying to explain it.
    Manuel Tuthill - Regdotter
    www.regdotter.com
    █ Low cost domain names

  3. #3
    misamisa is offline Junior Member
    Join Date
    May 2011
    Posts
    5

    Default

    try to play with positions like position:absolute,relative or static. but if your using float, I recommend position:absolute;with proper positioning,this will solve your problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124