Help positioning elements in content.
Posted: 02 February 2008 08:32 PM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2005-10-28

Hi guys, i’m having a little problem on a website i’ve just finished.

I’ve used the beez template to start from, and after a few hacks here it is http://www.dexnewyork.com/

Whats my problem?

Please go to this page http://www.dexnewyork.com/hair-services.html it is all the website a pattern from this page.
I’ve done some nasty positioning and floatings to make it look good. What i want is to position the elements in a fine way.
In each content i use different images at diferent sizes so i need to float each image on the right of each piece of content, so i want a CSS without specific widths for the image and the paragraph as well.

“I have been following a tip from the book CSS MASTERY by Andy Budd http://www.cssmastery.com/” Page 40 - 42.”

Any tip? Any sugestion?

Thanks in advance.

HTML CODE

<div class="destacado limpia">
     <
img src="images/stories/hair-services/Hair-Services-1-1.jpg" border="0" alt="Hair" title="Hair" />
     <
div class="parrafo">
          <
blockquote>In addition to Modern Mineral MakeupEveryone wants more Natural Looking Hair.</blockquote>       
          <
p>Call now to schedule an appointment: <strong>212.643.3188</strong></p
          <
p><strong>Blow Dry</strong>  | $40 up<br /> with <strong>Flat Iron</strong> | $20 Additional<br /><br /><strong>Up-dos</strong> | $75 up<br /><br /><strong>Women’s Haircut</strong> | $80 up<br /> <strong>Men’s Haircut</strong> | $55 up</p>
          <
blockquote>Expert HaircutColor, and Styling ServicesGet the Hair you’ve always dreamed of…..</blockquote>
     </
div>
</
div
.destacado {
    width
730px;
    
padding20px;
    
color#333;
    
background#eeeeee;
    
displayblock;
}

div
.destacado img {
    margin
: -20px -20px -20px 0;
    
floatright;
    
width300px;
    
displaytable;
}

div
.destacado .parrafo {
    float
left;    
    
width410px;
    
/*border: solid thin red;*/
}

div
.destacado p {
    margin
-right20px;
    
/*display:table;*/
    
line-height1.6em;
}

.limpia:after {
    content
".";
    
height0;
    
visibilityhidden;
    
displayblock;
    
clear:both;
Profile
 
 
   
 
 
‹‹ position of div      relative positioning?? ››