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
A slight layout problem.
Old 07-11-2011, 06:49 PM A slight layout problem.
Novice Talker

Posts: 6
Trades: 0
Dear All,
I have a page here (I am not allowed to post link) .The problem is that I want to make the tyre images align with the join like here (I am not allowed to post link) and also make the text appear over the image not beside or on top of it. What are the html fine tunes I need to perform tried many thing like margin etc did not work too?
newbie14 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-11-2011, 10:18 PM Re: A slight layout problem.
Digital Friend's Avatar
...

Posts: 2,016
Name: Marc
Location: The Caribbean
Trades: 0
Quote:
Originally Posted by newbie14 View Post
The problem is that I want to make the tyre images align with the join like here
You might be interested in the CSS float property.

Quote:
Originally Posted by newbie14 View Post
and also make the text appear over the image not beside or on top of it.
The only thing that I can think of, is "tooltips".
__________________
Blackberry Torch - Make it your next smartphone, or we'll find you. <_<
Digital Friend is online now
Reply With Quote
View Public Profile
 
Old 07-11-2011, 10:24 PM Re: A slight layout problem.
Novice Talker

Posts: 6
Trades: 0
Dear Friend,
Below is part of my codes. So first how to make the text over the image. Because tool tip I know how to do it and here we have lots of image and is not user friendly for user to mouse over to each of the image. Beside that how to make the image to be bottom rather than top. I tried vertical-align bottom is not working too.
Quote:
<style>
div{float:left}
div.newline {clear: both;}
img{float:left;vertical-align: bottom;}
</style>
</head>
<body>
<div class="newline" >
<div class="droppable">
<span>
<p>
R11
<img class="draggable" src="tyre2.png" ALIGN="BOTTOM" >
<input type="hidden" name="position1" value="1">
</p>
</span>
</div>
<img src="longJoinAxle.png" >
<div class="droppable">
<span>
<p>
R11
<img class="draggable" src="tyre2.png" >
<input type="hidden" name="position2" value="2">
</p>
</span>
</div>
</div>
<div class="newline" >
<div class="droppable" >
<span>
<p>
R12
<img class="draggable" src="tyre2.png" vertical-align="bottom">
<input type="hidden" name="position1" value="1">
</p>
</span>
</div>

<img src="centerLongJoinFirstAxle.png" >
<div class="droppable">
<span>
<p>
R11
<img class="draggable" src="tyre2.png" >
<input type="hidden" name="position2" value="2">
</p>
</span>
</div>
</div>
newbie14 is offline
Reply With Quote
View Public Profile
 
Old 07-12-2011, 12:07 AM Re: A slight layout problem.
Digital Friend's Avatar
...

Posts: 2,016
Name: Marc
Location: The Caribbean
Trades: 0
Quote:
Originally Posted by newbie14 View Post
So first how to make the text over the image.
Have you tried a link break?

This should place the image on a new line, while the text is displayed above the image :

HTML Code:
R11 <br />
<img src="" />
__________________
Blackberry Torch - Make it your next smartphone, or we'll find you. <_<
Digital Friend is online now
Reply With Quote
View Public Profile
 
Old 07-12-2011, 07:10 AM Re: A slight layout problem.
Novice Talker

Posts: 6
Trades: 0
Dear Friend,
I have tried but no difference still the same. I just need a bit more of adjusting and it will be done but I still cant post the link that is the problem.
newbie14 is offline
Reply With Quote
View Public Profile
 
Old 07-12-2011, 01:27 PM Re: A slight layout problem.
Digital Friend's Avatar
...

Posts: 2,016
Name: Marc
Location: The Caribbean
Trades: 0
Quote:
Originally Posted by newbie14 View Post
but I still cant post the link that is the problem
I don't see how posting a link can help when you can tell us of the code source and explain the problem in detail.

Is this what you wanted? ( vertically displaying image/text where the text shows above the image )

CSS :

Code:
.floatleft {
float:left
}

div.newline {
clear: both;
}
HTML :

HTML Code:
<div class="floatleft">R11</div>
<div class="newline"></div>
<img src="tyre2.png" class="floatleft">
<div class="newline"></div>

<img src="longJoinAxle.png" class="floatleft">
<div class="newline"></div>

<div class="floatleft">R11</div>
<div class="newline"></div>
<img src="tyre2.png" class="floatleft">
<div class="newline"></div>

<div class="floatleft">R12</div>
<div class="newline"></div>
<img src="tyre2.png" class="floatleft">
<div class="newline"></div>

<img src="centerLongJoinFirstAxle.png" class="floatleft">
<div class="newline"></div>

<div class="floatleft">R11</div>
<div class="newline"></div>
<img src="tyre2.png" class="floatleft">
<div class="newline"></div>
I removed the HTML input and the "droppable" class ( since you have not mentioned it ) .
__________________
Blackberry Torch - Make it your next smartphone, or we'll find you. <_<
Digital Friend is online now
Reply With Quote
View Public Profile
 
Old 07-13-2011, 12:49 AM Re: A slight layout problem.
Novice Talker

Posts: 6
Trades: 0
Dear Friend,
I want the label on top of the image but over the image meaning like a tag on the image itself. Secondly I want the for e.g. tyre2 then the axle then another tyre2 all on the same line.

Quote:
Originally Posted by Digital Friend View Post
I don't see how posting a link can help when you can tell us of the code source and explain the problem in detail.

Is this what you wanted? ( vertically displaying image/text where the text shows above the image )

CSS :

Code:
.floatleft {
float:left
}
 
div.newline {
clear: both;
}
HTML :

HTML Code:
<div class="floatleft">R11</div>
<div class="newline"></div>
<img src="tyre2.png" class="floatleft">
<div class="newline"></div>
 
<img src="longJoinAxle.png" class="floatleft">
<div class="newline"></div>
 
<div class="floatleft">R11</div>
<div class="newline"></div>
<img src="tyre2.png" class="floatleft">
<div class="newline"></div>
 
<div class="floatleft">R12</div>
<div class="newline"></div>
<img src="tyre2.png" class="floatleft">
<div class="newline"></div>
 
<img src="centerLongJoinFirstAxle.png" class="floatleft">
<div class="newline"></div>
 
<div class="floatleft">R11</div>
<div class="newline"></div>
<img src="tyre2.png" class="floatleft">
<div class="newline"></div>
I removed the HTML input and the "droppable" class ( since you have not mentioned it ) .
newbie14 is offline
Reply With Quote
View Public Profile
 
Old 07-13-2011, 10:05 AM Re: A slight layout problem.
Digital Friend's Avatar
...

Posts: 2,016
Name: Marc
Location: The Caribbean
Trades: 0
Quote:
Originally Posted by newbie14 View Post
I want the label on top of the image but over the image meaning like a tag on the image itself. Secondly I want the for e.g. tyre2 then the axle then another tyre2 all on the same line.
Like this :

CSS :

Code:
.floatleft {
float:left;
}

.floatimg {
float: left;
margin-right: 2em;
}

.center {
text-align: center;
}

div.newline {
clear: both;
}
HTML :

HTML Code:
<div class="floatleft">

<div class="floatimg">

<div class="center">R11</div>
<img src="tyre2.png" >

</div>

<div class="floatimg">

<div class="center">Text</div>
<img src="longJoinAxle.png" >

</div>

<div class="floatimg">

<div class="center">R11</div>
<img src="tyre2.png" >

</div>

<div class="floatimg">

<div class="center">R12</div>
<img src="tyre2.png" >

</div>

<div class="floatimg">

<div class="center">Text</div>
<img src="centerLongJoinFirstAxle.png" >

</div>

<div class="floatimg">

<div class="center">R11</div>
<img src="tyre2.png" >

</div>

</div>

<div class="newline"></div>
You were missing two "labels" , so I replaced them with "text" ,
__________________
Blackberry Torch - Make it your next smartphone, or we'll find you. <_<
Digital Friend is online now
Reply With Quote
View Public Profile
 
Old 07-13-2011, 10:54 PM Re: A slight layout problem.
Novice Talker

Posts: 6
Trades: 0
Dear Friend,
I tried you latest codes but unfortunately all images arranged horizontally.
newbie14 is offline
Reply With Quote
View Public Profile
 
Old 07-14-2011, 12:48 AM Re: A slight layout problem.
Digital Friend's Avatar
...

Posts: 2,016
Name: Marc
Location: The Caribbean
Trades: 0
Quote:
Originally Posted by newbie14 View Post
I tried you latest codes but unfortunately all images arranged horizontally.
I thought you wanted everything on the same line..

Quote :

Quote:
Originally Posted by newbie14 View Post
Secondly I want the for e.g. tyre2 then the axle then another tyre2 all on the same line.
I might be getting a little confused on what you really want..

Do you have any picture examples or can you make your words a little bit clearer please?
__________________
Blackberry Torch - Make it your next smartphone, or we'll find you. <_<
Digital Friend is online now
Reply With Quote
View Public Profile
 
Old 07-14-2011, 08:48 AM Re: A slight layout problem.
Novice Talker

Posts: 6
Trades: 0
Dear Friend,
The problem I am not allowed to even upload image or link. Do you have email then I can send you there?
newbie14 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A slight layout problem.
 

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