-
Floating Characteristic in CSS Mobile
I have a question as to why a float prefrence overrides other css code within my mobile section.
For instance, on bakedfx.com/kyke, you’ll see a browser site displayed with a quote, in this case #proquote2, to the image’s left (#profile_pic2) On the mobile version however, the picture and the quotation are on top of each other.
I jumped into the CSS and noticed there were no mobile configurations for these divisions. I added them where other mobile specifications were. This had to be done for the titles, as well, but those created no problems.
Basically, the issue lies when I alternate between float:none; and float:right;. At the top of both of these, I have a margin-top:170px !important; (I also have tried it w/o the !important). When it’s set to float:none; (image A), the text is on top of the image but is correctly formatted between the left and right margins. The second image is switched to float:right;, incorrectly formatted within the margins (it’s cut off) but the CSS takes the margin-top demand and sets it under the image.

A: margin-top:170px;
clear:none;
float:none;

B. margin-top:170px;
clear:none;
float:right;How can I have cake and eat it here? I want float:none; to work WITH the margin-top command.
I also tried adding the image itself, #profile_pic2, to the mobile site (though it had been displayed correctly). I added a line position:relative; and this put the text behind the image, and seemed to get me closer. C
urrently my CSS is set to A without that position relative on #profile_pic2.Thanks for any help!
Josh