on 06-09-2015 3:12 PM
Hi,
I am trying to make a responsive web design, so everything is in a grid layout. I have some text boxes where I want the text to be vertically centered. I have tried using the vertical-align property in CSS, but it doesn't work in Design Studio. Please find the screenshot attached.
Could anyone tell me if there is another way to vertically align text in Design Studio?
Best,
Sakshi
Hi Sakshi,
This seems an old post however noticed that you have not marked as "Answered"
The below script in CSS seems to work perfectly fine for me
display: flex; | |
justify-content: center; | |
flex-direction: column; | |
height: auto; |
Below are some additional links explaining this in detail. Hope this helps
https://css-tricks.com/centering-css-complete-guide/
Centering in the Unknown | CSS-Tricks
I have posted this answer for also
Regards,
Premdas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, there are two or perhaps more ways in which a responsive design can be made. One is how Jeroen's showed by using the media property in CSS and using definitive values for each output device. Another way is through the grid layout, although restrictive, you don't have to specific numbers in CSS files there.
I'm going by the second option. So, though the blog has some really nice ideas, they don't work for me.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.