English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I've tried to create a collage by putting a few images in a div tag. I have a contextual selector to align them all to the right without borders, padding or margins, but I get a small vertical (not horizontal so probably not margin etc.) gap between them on screen - help please!

2007-10-14 02:19:59 · 3 answers · asked by CHEZ 3 in Computers & Internet Programming & Design

3 answers

What statement did you use the "align" them. Align only works for text. You should use "float:right; or float:left" for your images.

Are you coding using a program or using a text editor! You may want to try top style light (its free and does a great job for css style sheets) it will let you SEE the real code and what will happen with your images. http://www.bradsoft.com/topstyle/tslite/index.asp

You may find you need to put each image in a separate division using the same class statement! Most all depends on your design. The lines could even be coming from your images (are you sure there isn't any line on them?)

2007-10-14 03:03:08 · answer #1 · answered by Tracy L 7 · 0 0

Could the images be inheriting a border attribute? Try setting border: none: for the images.

2007-10-14 04:13:17 · answer #2 · answered by Anonymous · 0 0

Put them all in different div tags, and using css, you can overlap them by specifying positions on where they should show.

2007-10-14 03:24:47 · answer #3 · answered by Say it like it is 4 · 0 0

fedest.com, questions and answers