I am making a beginning in CSS, and I have tried to find the answer but I could not find it. So please bear with me: D
I have a code that is in my code (because it is a responsive mobile web), I will show it in the case related to my problem: < Pre> This is a part of my code, where I want to change the So I tried to do something like this: Then there was a strange thing: the width is working perfectly, the I have Why is this happening? What should I do to work? You should use the minimum height: 90px; Then the height inside the material increases. For example. CSS: & lt; Meta name = "viewport" content = "width = device-width, initial-level = 1.0, maximum-scale = 1.0, minimum-scale = 1.0, user-scalable = 0" & gt;
img
width and
height With:
& lt; Div id = "desc" & gt; & Lt; Img alt = "src =" picture / MallDetail / MallDesc.png "& gt; & Lt; / Div & gt;
#desc img {float: left; Width: 95%; Height: 50%; Margin: 0 2.5% 0 2.5%; }
img
width size is 95% of the current width , But
height is not working - it is not currently changing (its
height should be 50% of the current height).
margin 0 and
padding 0 to reset my CSS.
& lt; Div id = "mainContainer" & gt; & Lt; Img src = "helloword" alt = "style =" width: 100% "/> & Lt; Div class "newcontent" & gt; & Lt; H1 & gt; Hello & lt; / H1> & Lt; / Div & gt; & Lt; / Div & gt;
#mainContainer {min-height: 80px; Width: 100%; }
No comments:
Post a Comment