Reply
Need HELP with image alignment!
Old 03-29-2006, 11:55 PM Need HELP with image alignment!
Brian06's Avatar
Junior Talker

Posts: 2
Location: Girard, Ohio
Hello everyone!

First off let me say that Im sorta a newbie to the whole CSS and <div> stuff! But Im eagar to learn! So here's what I would like alittle help with if anyone would be kind enough help me out! Im creating a <div> box to display products in which has 3 images within the main <div> on the left-then next to these 3 images I have 1 large image that equals the height of the first 3-then I have 3 images that will go next to the center image on the right which will complete my product box! All 7 of these images with link to certain sections of my site! The problem Im having is I made the main box-and have placed the 3 images to the left-but I cant seem to figure out how to remove the space that is coming up in between each of the 3 images? I want each image to line up directly below the image above it with no gap!

My Code:

<div id="rhinestoneteesMainContainer">

<div id="leftContainer">

<div class="rhinestoneLogo">
<a href="http://www.mysite.com" onclick="return contentItemLink(this);">
<img src="/images/inForSpring_d1f_w_logo.gif" alt="Rhinestone Design" />
</a>
</div>

<div class="rockstar"> <a href="http://www.mysite.com" onclick="return contentItemLink(this);">
<img src="/images/inForSpring_d1f_w_01.jpg" alt="Rockstar Design" /> </a>
</div>

<div class="casino"> <a href="http://www.mysite.com" onclick="return contentItemLink(this);">
<img src="/images/inForSpring_d1f_w_02.jpg" alt="Casino Designs" /> </a>
</div>
</div>
</div>

My CSS:

}
#rhinestoneteesMainContainer {
background-color: #FFCCFF;
width:605px;
height:405px;
*overflow:hidden;
}

#leftContainer {
width:210px;
height:405px;
float:left;
background-color: #000000;
}

.rhinestoneLogo {
width:210px;
height:86px;
float:left;
cursorointer;
cursor:hand;

}

.rockstar {
width:210px;
height:184px;
float:left;
position:relative;
cursorointer;
cursor:hand;
}

.casino {
width:210px;
height:135px;
float:left;
position:relative;
cursorointer;
cursor:hand;
}
If anyone could help me out here I would greatly appriciate it!

Thank You,
Brian
Brian06 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-30-2006, 12:45 AM Re: Need HELP with image alignment!
chrishirst's Avatar
Super Moderator

Posts: 12,826
Location: Blackpool. UK
set the margins to 0 by the sound of it

http://www.w3schools.com/css/pr_margin.asp
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-30-2006, 01:12 AM Re: Need HELP with image alignment!
Brian06's Avatar
Junior Talker

Posts: 2
Location: Girard, Ohio
Hi!

Thank for the reply! I tryed your suggestion and set the margin to 0 as you suggested and still have a space in between the 2nd and 3rd image? I tryed the margin first on the #leftContainer and also tryed setting the margin to 0 on each image? Still getting the same result a small space in between the 2nd and 3rd image? Any other ideas? Does the code and css look right with the <div>? This is really mind boggling! Any and all help is greatly appriciated!

Brian
Brian06 is offline
Reply With Quote
View Public Profile
 
Old 03-30-2006, 01:22 AM Re: Need HELP with image alignment!
chrishirst's Avatar
Super Moderator

Posts: 12,826
Location: Blackpool. UK
is this in IE by some chance ??

probably the whitespace problem see http://www.webmaster-talk.com/222767-post6.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Need HELP with image alignment!
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB 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.12667 seconds with 13 queries