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
Need HELP with image alignment!
Old 03-30-2006, 12:55 AM Need HELP with image alignment!
Brian06's Avatar
Junior Talker

Posts: 2
Location: Girard, Ohio
Trades: 0
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
 
 
Register now for full access!
Old 03-30-2006, 01:45 AM Re: Need HELP with image alignment!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
set the margins to 0 by the sound of it

http://www.w3schools.com/css/pr_margin.asp
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-30-2006, 02:12 AM Re: Need HELP with image alignment!
Brian06's Avatar
Junior Talker

Posts: 2
Location: Girard, Ohio
Trades: 0
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, 02:22 AM Re: Need HELP with image alignment!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I 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 Need HELP with image alignment!
 

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