November 10, 200818 yr Done something wrong but dont know what??? I am trying to get four images two on top and two underneath all with a little text underneath. they are wrapped in a 700px wide DIV Heres the code... <div class="right_hand_images"> <div class="left_box"> <img src="images/themobile.jpg" alt="mobilehair"> <p>The Mobile Hairdresser is a run by a professional hair stylist. This is from our business design package and includes 7 pages of professionally coded HTML, with a contact form and image gallery.</p> </div><!-- left_box end --> <div class="right_box"> <img src="images/clubland.jpg" alt="clubland" width="340"> <p>Club Land is a biggest hardcore label in the industry with a huge network of stomping fans.</p> <p>Club Land already have a strond brand so we had to work with that in order to incorperate this in our design.</p> </div><!-- right_box end --> <div class="left_box"><!-- right_hand_images --> <img src="images/aveda_top.jpg" alt="aveda"> <p>Aveda manufactures professional plant-based hair care, skin care, makeup, Pure-Fume and lifestyle products.</p> <p>Aveda already have a strond brand so we had to work with that in order to incorperate this in our design.</p> </div><!-- left_box end --> <div class="right_box"> <img src="images/themobile.jpg" alt="mobilehairstylist"> <p>The Mobile Hairdresser is a run by a professional hair stylist. This is from our business design package and includes 7 pages of professionally coded HTML, with a contact form and image gallery.</p> </div><!-- right_box end --> </div><!-- right_hand_images end --> CSS .right_hand_images{ width:700px; margin-top:40px; float:left; border-top:1px solid #9a9a9a; border-bottom:1px solid #9a9a9a; } .left_box{ width:340px; height:350px; font-weight:bold; float:left; margin-top:10px; margin-right:11px; } .left_box img{ border:2px solid #9a9a9a; } .right_box{ width:349px; height:350px; float:left; font-weight:bold; margin-top:10px; } .right_box img{ border:2px solid #9a9a9a; } They are all aligning vertically... what am I doing wrong?
November 10, 200818 yr Is the site up on t'net? I find it better to look at the site. Maybe try having a "top box" div and "bottom box" div instead of left and right. (Sorry this is this best help I can give.... I'm still getting to grips with css myself )
November 10, 200818 yr Author Maybe try having a "top box" div and "bottom box" div instead of left and right. Agh you may have cracked it Helen I think you could be right... humm I will stick it on the net 2 mins
November 10, 200818 yr Author http://www.styledwebdesign.co.uk/preview/new_site/index.html Do you like the site?
November 11, 200818 yr Have you given up Helen? ha Sorry....... Got cold and went to bed - cheaper than putting the heating on Good to see you have sorted it! Very nice. Good use of styleswitcher..... I may have to pick your brain about that as I'm currently designing a site that requires 2 stylesheets. The only thing I'm wondering about is the header space. I would personally make your logo bigger as it gets lost behind the large graphic (which BTW is V nice)
Create an account or sign in to comment