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
Looking for help on a layout please
Old 02-08-2009, 10:50 AM Looking for help on a layout please
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Hi - i am doing a site at http://www.a-bweddingcars.co.uk/cars.html - the problem i am having is laying out those pesky car images with the car image on the left and the text on the right - i did try it with floats but the image floated outside and looked bad - and my clear float didnt seem to work - the surrounding box collapsed to the hieght of the text.

I am having a bit of a head crisis today and i should be able to do this - but its just one of those days when my brain has stopped working!

I wonder if anyone could help me out to make this look the way i had envisiged and tell me where i am going wrong!

I have even resorted to tables but then couldnt get the text to align at the top! Something is missing / not right with this and any help would be greatly appreciated.
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-08-2009, 04:17 PM Re: Looking for help on a layout please
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
The relevant HTML changes:

Code:
<div class="boxout">
    <div class="boxoutfill">
               
                 <h2>Bentley T1</h2>
                 
           
               <img src="cars_files/bentley_t1.jpg" alt="Bentley T1" class="imgbord" width="200" height="181">
                <p>The 1973 <span class="bold">Bentley T1</span> the status symbol of its day.</p> 
              <p> Our Bentley T1 is in Silver with Cream Leather interior - just the car to arrive in style and comfort.</p>
                            <br class="brclear" />

                 
                
               
               
              </div>
            </div>
            
            
            <div class="boxout">
                <div class="boxoutfill">
                <h2>Rolls Royce Silver Spirit</h2><img src="cars_files/rolls_royce_ss.jpg" alt="Bentley T1" class="imgbord" width="200" height="160">
                   <p>The <span class="bold">Rolls Royce</span>
silver spirit from the grill to its white wall tyres a truly impressive
car with class to spare in white with black leather interior great for
photographs or just sit back and enjoy</p>
<br class="brclear" />
                </div>
            </div>
And the CSS changes:

Code:
.imgbord {float:left;
            padding: 5px;
            border:1px solid #999;
            background-color:#fff;
            margin:5px;}

.brclear {margin:0; padding:0; line-height:0; clear:both;}
That should fix you right up.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 02-09-2009, 09:24 AM Re: Looking for help on a layout please
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
thanks for that serandfae i will have a shot at that tonight when i get home hopefully i might be a bit more compus mentus than i was yesterday !
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 03-04-2009, 03:45 PM Re: Looking for help on a layout please
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Hi, I have a bit of an issude with a box not expanding in my css . im probabally missing something - but i cant seem to get the background to extend to the picture end ;
the page is here : http://www.a-bweddingcars.co.uk/cars.html

The car picture is floated , but the surrounding content does not extend.

The HTML code is as follows:
<div class="boxout">
<div class="boxoutfill">
<h2>Bentley T1</h2>

<img src="img/bentley_t1.jpg" alt="Bentley T1" class="imgbord" width="200" height="181">
<p>The 1973 <span class="bold">Bentley T1- </span> the status symbol of its day.</p>
<p> Our Bentley T1 is in Silver with Cream Leather interior - just the car to arrive in style and comfort.</p>
<br class="brclear" />
</div>
</div>

The CSS is : .imgbord {float:left;
padding: 5px;
border:1px solid #999;
background-color:#fff;
margin:5px;}

.brclear {margin:0; padding:0; line-height:0; clear:both;}

I cant seem to work out why this is not having the desired effect
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 03-04-2009, 03:47 PM Re: Looking for help on a layout please
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Sorry , missed some of the css:
#maintextFull .boxout { display:block;
padding: 8px;
border: 1px solid #CCC;
margin: 10px 0;}
#maintextFull .boxoutfill {
background-color:#eae7cc;
padding: 5px;
}
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 03-04-2009, 09:04 PM Re: Looking for help on a layout please
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
So you don't want the white around the picture? Set the margin and padding on .imgbord to zero. Or am I misunderstanding what you're wanting?

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 03-05-2009, 11:56 AM Re: Looking for help on a layout please
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
I did want the white around the picture, thanks , but the box behind the picture ( the .boxout & .boxoutFill) collapse so the picture sits half on half off if you get my drift - what i wanted was the pic niceley in the centre with the surrounding beige box extending all round the pic.
I could ahceve this i suppose with a few empty paragraphs - but thats sort of cheating! Cheers
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 03-05-2009, 02:38 PM Re: Looking for help on a layout please
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I think your clearing break is in the wrong place. Try moving it to just after the </div> for boxoutFill
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-06-2009, 11:17 AM Re: Looking for help on a layout please
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
many thanks - ill give that a try
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Looking for help on a layout please
 

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