jQuery CSS functions. Part 2 – width() and height()

$.width() and $.height()

Related to the previous several posts jQuery comes with two functions that help you dynamically get the width and height of an element.

Have you ever asked about the width of an element in pixels which is 100% wide from the CSS? Well $.width() gives you the answer. Everything else is about experiments.

Related posts:

  1. jQuery CSS functions. Part 1 – offset()
  2. What’s the width and height of the visible part of my browser?!
  3. jQuery CSS selectors. Change one or more CSS properties!
This entry was posted in css, javascript, micro tutorial and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">