How do I create a photo gallery with same widths and different heights using HTML/CSS? -
i beginner html , css. want create photo gallery columns same width, each photo have different height. want photos "hug" each other, photos in second row may not start in same vertical position each other. how accomplish that? saw columns - maybe work? i'm grateful available!
you create html page contains div
s each column.
you either use css stylesheet place columns together: - either float these column div
left (refer w3c school's css floating), or - using relative
or absolute
position
ing (refer w3c school's css positioning) , give each div x , y coordinate.
then give each column div
preset width (refer w3c school's css width , max-width).
every item in column move new row (when has static positioning, default tags). give each image in column same fixed should fine...
Comments
Post a Comment