| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Sep 2004
Posts: 149
|
Div/img positioning problem
I'm tryna perfect a design, but i'm having issues with float divs overlapping. Heres an example As you can see some of the results look funky. I know tables would sort out this problem, but that I hope is a last resort. |
|
|
|
|
|
#8 (permalink) |
|
Work faster microphone ..
Join Date: Feb 2003
Location: Dubai
Posts: 1,739
|
this: http://www.feedsfarm.com/s/s-20-iraq...o.com&z=-86400 but he seems to have fixed it - will have a look through the code tomorrow edit: oh dear, resorted to tables |
|
|
|
#9 (permalink) |
|
Senior Member
Join Date: Sep 2004
Posts: 149
|
Sorry bout that, had to change it for the users. Luckily Opera cached it from when I was checking the layout in that browser. Heres what it looks like using divs (the problem is the overlaps): http://images.feedsfarm.com/screeny-old.png Heres the desired effect which I've got using the undesirable table elements http://images.feedsfarm.com/screeny-new.png Its a search engine, and I'm an XML developer so I want to use DIVs because: *) Usability *) Standards *) Less HTML required, less TCP/IP packets, less data to serve to users. |
|
|
|
#10 (permalink) |
|
Graphic Design Web Design
Join Date: Feb 2005
Location: Wales UK
Posts: 36
|
If you add another line of text to the text on the caption above where the float is breaking should sort it out, but not the ideal asnwer, or for now you can put a padding in the stylesheet with reference to the <p>paragraphs of text</p> add a 20 or so padding on bottom (this is a quick quess without looking at your code ans css) So hold the flames Having a pigs year with floats also. |
|
|
|
#13 (permalink) |
|
Work faster microphone ..
Join Date: Feb 2003
Location: Dubai
Posts: 1,739
|
that almost worked, but not quite, here: original page: http://www.joh.cam.ac.uk/testing/admissions/ with the above method : http://www.joh.cam.ac.uk/testing/admissions2/ I'm a little closer, but still completely baffled. |
|
|
|
#14 (permalink) |
|
Registered User
Join Date: Nov 2004
Posts: 14
|
http://www.456bereastreet.com/archiv..._in_body_text/ That link worked great for me. Try it. |
|
|
|
#16 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,206
|
no it's not tabular data. there's a million and ten ways of doing it. I'd probably use definition lists. I've used percentages as you're going for a fluid layout. css Code:
xhtml Code:
|
|
![]() |