- This topic is empty.
-
AuthorPosts
-
May 15, 2019 at 5:29 am #287848
bininandra
ParticipantHello,
I consider myself a HTML / CSS junior but have managed to create a responsive HTML newsletter but have two issues that i desperately need a help with please!
Newsletter can be viewed here – all CSS in header:
http://www.kreativebarn.com/rare/hotpod/hp_stripped.html1) The gap below ‘Pic 1’ – for the life of me, i cant work out what’s going on with this and how to get rid of it.
2) When collapsing below 600px (mobile), I’d like ‘Header 2’ text (and button) to appear below ‘Pic 2’ (like it does with ‘Pic 1’ section).
I’ve followed a few things to try and get that to work, but does not seem to be working.
Appreciate any help!
Cheers
Bini
May 15, 2019 at 10:13 am #287865Shikkediel
ParticipantThe gap below the picture is an empty line. You can remove it with this for example:
img { display: block; }Edit – I don’t see how one could swap elements inside a table by the way.
May 17, 2019 at 3:21 am #287977bininandra
ParticipantThank you for replying @shikkediel – its sorted out the gap issue!
I have updated the doc and now just need to sort out the issue when collapsing for mobile, I need pic 2 to be above sub heading 2, is this possible?
May 17, 2019 at 2:30 pm #288054Shikkediel
ParticipantApart from using Javascript, I wouldn’t know how to approach that in this particular situation myself…
May 18, 2019 at 12:37 am #288058bininandra
ParticipantOk. No probs.
What’s the best way to collapse to mobile and retain the blocks side by side, rather than below each other?
May 18, 2019 at 12:29 pm #288073Shikkediel
ParticipantProbably a
table-layout: fixedand children that are50%width. I think you might need a bit ofbox-sizingtoo because of the padding. Hints can be found here:If you post a demo on Codepen, it would be a lot easier for people to have an attempt at modifying the actual code…
May 20, 2019 at 1:31 pm #288118Oliver.bonnet
ParticipantThank you for the feedback Shikkediel :)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.