Hello !
First of all, sorry if my English seems strange, I use a translator...
For the past few weeks, I've been wading through the joys of html/css to make a biography. I've managed to get a clean and responsive code based on the use of grid and flexbox.
The whole thing displays perfectly on different internet browsers but I have a problem with the mobile version of CB...
the image size is not respected at all ! With a height dimension in % (128% here) it becomes huge, with a pixel dimension (150px) the image is smaller than my flexbox of height : 90px !!! And it does this to me for all the <img> of my bio...
I don't understand it...
Here is a piece of my code:
And if someone knows how to force the display of the mobile version on pc, I'm interested too...
First of all, sorry if my English seems strange, I use a translator...
For the past few weeks, I've been wading through the joys of html/css to make a biography. I've managed to get a clean and responsive code based on the use of grid and flexbox.
The whole thing displays perfectly on different internet browsers but I have a problem with the mobile version of CB...
the image size is not respected at all ! With a height dimension in % (128% here) it becomes huge, with a pixel dimension (150px) the image is smaller than my flexbox of height : 90px !!! And it does this to me for all the <img> of my bio...
I don't understand it...
Here is a piece of my code:
Code:
<div style="list-style-type:none;float: left;width: 100vw;">
<ul style="margin-top: -350px;margin-left: -165px;text-align: center; height: auto; border: none; border-radius: 15px; box-shadow: 0 0 10px #000; background-color:grey; width:calc(100% - -130px)!important">
<ul style="list-style-type:none;font-size: 17px;font-weight: normal;border-radius: 30px;margin: 0px 0px 0px 0px; list-style: none; box-sizing: border-box; float: none; clear: none; width: 100%; padding: 30em 0px 0px 0px; cursor: url(https://camo.mmcdn.com/0f16a5aefebd13bc7a7f2e4381ada86942c15fd6/68747470733a2f2f692e6962622e636f2f314b646a6a68372f637572736f722e706e67), auto;">
<ul class="data">
<!--inmpotant margin-left:-50px; -->
<span style="margin-left:-50px;--bgcol:transparent;--bordsize : 0px; --bordcol:red; --minflex: 300px;display: flex; background-color: var(--bgcol);border: var(--bordsize) solid var(--bordcol);max-width: 88vw;min-width: var(--minflex);line-height: normal;justify-content : center;align-content:center;flex-flow:row wrap;">
<span style="display: flex; flex-direction: row; align-items: center; border: var(--bordsize) solid green;min-width:var(--minflex);max-width:var(--minflex);height:auto;flex-grow: 1;padding: 0 0 2em 0">
<li style="list-style-type:none;margin:0 -150px 0 0; padding:0; border: 0px solid ;top: 0;display: grid;row-gap:0em; column-gap: 0em; grid-template-columns:var(--minflex); grid-auto-rows: minmax(1.5em,auto);height:100%;background-color:;position:relative;z-index:1;">
</li>
</span>
<!--social network-->
<span style="display: flex; flex-direction: column; --widcolumn:45%; --widline:90px;--shad:25px; --shadcol:rgba(0, 0, 0, 0.20);--heightButton:45px; align-items: center; border: var(--bordsize) solid red; min-width:var(--minflex); max-width: 100%; height: 100%; flex-grow: 2; z-index: 0;">
<!--TikTok-->
<span style="display: flex; align-items: center; justify-content: center; flex-direction: row; border: var(--bordsize) solid purple; background: #F5C34D; min-width:var(--minflex); width: var(--widcolumn); height: var(--widline); position: relative;box-shadow: inset 0 0 var(--shad) var(--shadcol);margin:0 0 2em 0;">
<img src="https://i.ibb.co/nbj6ZfR/275022847-361548449211826-1940821680359614203-n-Photo-Room-png-Photo-Room.png" alt="image" style="position: absolute; z-index: 1; bottom: 0px; right: -25px; height: 150px; -webkit-filter: drop-shadow(0px 0px 5px #000000 ); filter: drop-shadow(0px 0px 5px #000000);">
</span>
</span>
</span>
</ul>
</ul>
</ul>
</div>
And if someone knows how to force the display of the mobile version on pc, I'm interested too...