Ben90 Posted November 21, 2015 Share Posted November 21, 2015 Hi guys, Is it possible to create a mobile version of Home Text Editor? I am using some pictures in Home Text Editor module. As you know that on Mobile Site, the picture size is not changing. Is there any way to make it responsive to the screen sizes? I thank you in advance Link to comment Share on other sites More sharing options...
NemoPS Posted November 21, 2015 Share Posted November 21, 2015 If you want hardcoded images to resize, the only way I know is to use a relative width (%) in the css, targeting them. Apply a common class and target it with media queries 1 Link to comment Share on other sites More sharing options...
Ben90 Posted November 23, 2015 Author Share Posted November 23, 2015 If you want hardcoded images to resize, the only way I know is to use a relative width (%) in the css, targeting them. Apply a common class and target it with media queries Yep. Relative width works pretty well (without media queries). Apparently this one good enough to do the tricks: margin-left: auto; margin-right: auto; max-width: 100%; Inline CSS only for the pictures 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now