Jump to content

Set special hieghts on a element

robeng

Hi! Im wondering if you can set the CSS property "top:" to 50% of an image height. The image change height depending on the users window(responsive web design) and Im wondering if you can set a text in the midle of the image with the property "top:".

Thanks in advance!

Link to comment
Share on other sites

Link to post
Share on other sites

grab the image height on window size change with JavaScript and update the css.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×