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
Images will not align
Old 04-05-2011, 02:09 PM Images will not align
Super Talker

Posts: 142
Name: William
Trades: 0
Hi I am coding this
http://img827.imageshack.us/img827/5918/t4mradio.png

but I started putting the banner together and it is coming out like this
http://img708.imageshack.us/img708/4517/43396258.png

my code is:

HTML Code:
<div class="header-left">
</div>
<div class="header-centre">
<div class="logo">
</div>
<div class="stream">
<marquee> testing this here </marquee>
</div>
</div>
<div class="header-right">
</div>
</div>
and css is
Code:
.header-left {
    background-image: url(images/header-l.png);
    background-repeat: no-repeat;
    width: 25px;
    height: 80px;
    float:left;
}
.header-centre {
    background-image: url(images/header.png);
    background-repeat: repeat-x;
    width: 100%;
    height: 80px;
    float:left;
    line-height: 80px;
}
.header-right {
    background-image: url(images/header-r.png);
    background-repeat: no-repeat;
    width: 25px;
    height: 80px;
    float: left;
}
I have tried using inline-block, block, inline, inline-table, inline-row, tried floating left to the left, right to the right and margin 0 auto the centre etc...
UUilliam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-05-2011, 02:25 PM Re: Images will not align
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
well! 100% PLUS 2x25px is more than 100%.
__________________
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 04-05-2011, 02:36 PM Re: Images will not align
Super Talker

Posts: 142
Name: William
Trades: 0
ah, thanks
Just needed the middle bit to span across the full length, turns out it is 95%
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-05-2011, 02:53 PM Re: Images will not align
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You don't need to guess, because that could "break".

right side floated right
left side floated left
centre section float none width left at "auto"

http://www.modtalk.co.uk/_site/code/.../three-column/

http://www.modtalk.co.uk/_site/code/...-centred/both/

the right section needs to be first in the document flow.
__________________
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!
 
Reply     « Reply to Images will not align
 

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.49808 seconds with 12 queries