Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

3 pictures per row

Posted on 2011-03-01
6
Medium Priority
?
279 Views
Last Modified: 2012-06-21
<div style="width:100px">

in this div I want 3 pictures per row with a description under picture


</div>

so if there are 4 pictures
1111
1
5 pictures
1111
11


all I need is the css for one picture
0
Comment
Question by:rgb192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 40

Accepted Solution

by:
Gurvinder Pal Singh earned 2000 total points
ID: 35010792
try this one
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<style>
		.pic
		{
			display:inline;
			width:28px;
		}
		.pic img
		{
			width:28px;
			height:30px;
		}
		.pic div.description
		{
			width:28px;
			overflow:hidden;
		}
	</style>
</HEAD>

<BODY>
	<div style="width:100px">
		<div class="pic">
			<img src="DSC_6481 copy.jpg">
			<div class="description">Desc1</div>
		</div>
		<div class="pic">
			<img src="DSC_6481 copy.jpg">
			<div class="description">Desc1</div>
		</div>
		<div class="pic">
			<img src="DSC_6481 copy.jpg">
			<div class="description">Desc1</div>
		</div>
	</div>
</BODY>
</HTML>

Open in new window

0
 

Author Comment

by:rgb192
ID: 35011020
is there a way to do this without overflow hidden

because I want to display the entire words
0
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 35013762
would you be ok with the words getting spanned across multiple lines then?
Since the width is just 28px, can you just try and reduce the font only?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:rgb192
ID: 35031770
yes multiple lines is ok
0
 

Author Comment

by:rgb192
ID: 35097741
how to span words across multiple lines
0
 

Author Closing Comment

by:rgb192
ID: 35244559
thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question