- This topic is empty.
-
AuthorPosts
-
January 26, 2016 at 8:28 am #237318
SirenaColella
ParticipantHello guys,
I kindly ask you to take a look at this my web page: http://www.cookinggamesforkids.biz/caw/?page_id=225
I can not align vertically in the middle of my three images that are in the first line. Could you give me a hand or a suggestion? thank you very much
I decided not to use the property flex because I think still is not yet supported by all browsers most used.
Thank a lot!
January 26, 2016 at 8:59 am #237319SirenaColella
ParticipantThis is my code on CodePen
January 26, 2016 at 9:24 am #237321Paulie_D
MemberFirstly…I don’t think a
dl/dt
structure is right here. Use a table (if you must) for preference.Then …and you have a strange combination of
display:inline-block
andfloat
…pick one or the other…not both…and is this even required?January 26, 2016 at 9:26 am #237322Paulie_D
MemberAs for Flexbox..it’s OK for IE10 and up. What is your requirement?
January 26, 2016 at 9:33 am #237323SirenaColella
ParticipantHi Paulie_D, thanks a lot!
Unfortunately tags dt and dl are entered automatically from my wordpress theme, and unfortunately, I can not do without it!
What I want to achieve is to have the three images aligned to the center, that is, that the three images were balanced on the line.Can you help me?
ps: ok, I removed float property (thanks!)
January 26, 2016 at 9:34 am #237324SirenaColella
ParticipantI would not use Flexbox because I have problems with Safari 6
January 26, 2016 at 10:15 am #237331Paulie_D
MemberWell if you can’t use actual tables, use CSS tables
January 26, 2016 at 4:19 pm #237349SirenaColella
ParticipantPardon me, I do not intend to bring up any more of your precious time, but I do not think there yet. I would like the fourth image was going to head into a new line, excuse me a lot I’m not understanding how I can get this layout.
This is the example that I’d like to have
http://imgur.com/DeA6AwrJanuary 26, 2016 at 4:38 pm #237351SirenaColella
ParticipantAnd this is my web page now
January 27, 2016 at 2:37 am #237357Paulie_D
MemberYou should probably break up the page into rows of three images…then it should work.
Other than that it’s probably a little complex especially given the limitations of the structure.
January 27, 2016 at 3:43 am #237361gcyrillus
Participantyou may also reset to inline, everything but dt to inline-block .
http://codepen.io/gc-nomade/pen/MKVNLV
max-width on img will shrink themJanuary 27, 2016 at 5:13 am #237366SirenaColella
ParticipantGreat! Thanks a lot to everyone! Thanks Paulie_D and gcyrillus. How can I support this forum? Can I do a donation?
January 27, 2016 at 7:46 am #237378gcyrillus
Participantmaybe helping someone else where you can will do ;)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.