0

I want to create a layout like this with html & css for thumbnail listing. enter image description here

I want to fill a DIV with thumbnails & exclude a portion of that DIV from content & fill it with some other content;
Is it possible? How?

6
  • 3
    Yes it is. What have you tried so far ? Commented Sep 14, 2013 at 22:32
  • If you build it carefully, and all your thumbnails have the same dimensions, and your upper-right-other-content can be a sibling of the thumbnails, I think you can do it with floats and a few extra elements to create the borders as show. Of course, CSS tables may do the trick also. Commented Sep 14, 2013 at 22:34
  • @Vucko: I tried absolute positioning of smaller div in the upper right; but the thumbnails go behind it! Commented Sep 14, 2013 at 22:37
  • @4r1y4n it that is the problem then use z-index. Commented Sep 14, 2013 at 22:38
  • 1
    @4r1y4n yes, you have to give to all elements an aboslute value. In your case, float or display:inline-block is the answer, without using position:absolute. Commented Sep 14, 2013 at 22:44

1 Answer 1

2

Yes, use a floating layout. You could float:left; on everything in CSS, clear:left; on the 7th small div. Note that you may need to hold open the div that you're putting this HTML inside. For backward compatibility I use an empty div at the bottom and clear:left; on it. You may consider a background image on the larger div to the right to create that border effect.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.