I’m trying to make my caption-box the same size as my image, without losing the responsiveness of the flex-slider, any suggestions?
Mads K
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I fixed it by making it an inline-block and using absolute positioning. This makes it so you don’t need to float it right anymore. Plus, I added the border-box thing, so your padding wouldn’t make the box too large.
display:inline-block;and border-box together makes CSS positioning much easier in responsive design.There is a nice little tutorial on border-box here: http://css-tricks.com/box-sizing/