...

View Full Version : Resolved Aligning problem



kyllle
04-10-2009, 04:12 PM
Hi all,

Iv created a page here: http://www.glen-lodge.co.uk/testing/testing/ifb.html, this page displsays correctly in ie 7 but not in ff or ie 6

Basically Im having trouble aligning the search image to the right of the wrapper, iv tried giving the image display: block and text-align: right but with no joy in firefox, I then floated the search image to the right which cures the ff problem but displays ie wrong?

Could anyone help me out with this problem or offer some advice?

Kind regards

Kyle

abduraooft
04-10-2009, 04:24 PM
Fix the errors first, see http://validator.w3.org/check?uri=http%3A%2F%2Fwww.glen-lodge.co.uk%2Ftesting%2Ftesting%2Fifb.html&charset=%28detect+automatically%29&doctype=Inline&group=0

kyllle
04-10-2009, 04:26 PM
Thanks abduraooft,

Errors fixed!!

Kyle

abduraooft
04-10-2009, 04:41 PM
I'd do it like

.mainHeader {
position:relative;
}
.mainHeader_col2 {
position:absolute;
right:0;
top:0;
}
.mainHeader_col2 img {
clear:right;
display:block;
float:right;
padding:10px 0 0;
}

But, let me ask, what is the point in aligning an img tag for making a header having a search form in it?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum