Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Div containing float images is aligned properly in every browser but IE8
Old 12-14-2009, 02:28 AM Div containing float images is aligned properly in every browser but IE8
Junior Talker

Posts: 2
Name: April
Trades: 0
I'll admit...my code isn't as clean as it could be but I'm self taught and am very busy. I have been able to fix IE8 issues with alignment on my other pages....but those involved text whereas this div contains float elements. I am not sure if that is the problem here or not.

Any insight would be greatly appreciated...I basically just want all the float images to center within the background.

http://www.equineacquisitions.com/sold.php

The CSS:
http://equineacquisitions.com/newdesign.css
WhoMe is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-14-2009, 03:27 AM Re: Div containing float images is aligned properly in every browser but IE8
Skilled Talker

Posts: 58
Trades: 0
.floatsale padding, margin and border widths need to be taken into account when determining the width of #soldhorses.
whatsherface_21 is offline
Reply With Quote
View Public Profile
 
Old 12-14-2009, 05:36 AM Re: Div containing float images is aligned properly in every browser but IE8
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I basically just want all the float images to center within the background.
Floating is to the left or the right.

you cannot "float" and centre an element.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-14-2009, 02:49 PM Re: Div containing float images is aligned properly in every browser but IE8
Junior Talker

Posts: 2
Name: April
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Floating is to the left or the right.

you cannot "float" and centre an element.
Makes sense..

I'll try adjusting the margins / width thanks
WhoMe is offline
Reply With Quote
View Public Profile
 
Old 12-14-2009, 06:02 PM Re: Div containing float images is aligned properly in every browser but IE8
Skilled Talker

Posts: 79
Location: Devon, England
Trades: 0
text-align: center; Will centre images.
__________________
Please add to my Talkupation if I was helpful. Thanks.


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
paaaaaaaaaa is offline
Reply With Quote
View Public Profile Visit paaaaaaaaaa's homepage!
 
Old 12-14-2009, 06:06 PM Re: Div containing float images is aligned properly in every browser but IE8
Skilled Talker

Posts: 58
Trades: 0
Quote:
Originally Posted by WhoMe View Post
Makes sense..

I'll try adjusting the margins / width thanks
If you simply adjust the width of #soldhorses (this div is already centered)
to accommodate three .floatsale divs (including margins & border widths), these floats will fill their container div and appear centered.

#soldhorses is simply too wide at the present for three .floatsale divs and too narrow for four.
whatsherface_21 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Div containing float images is aligned properly in every browser but IE8
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32008 seconds with 12 queries