• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Div Tag Width Changing si Undesireable

 
Ranch Hand
Posts: 2211
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a DIV tag set at a certain width. I have an UL that I use as a dynamic menu using $.hover(). The hover event displays an embeded DIV tag that is set to a third of the width of the parent DIV tag. However, when the embeded DIV tag loads the parent DIV tag widens for some reason.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have you looked at the CSS is and see if it is padding, margins, etc?
Have you added borders to all the elements to ee what space they really take up.

Sounds like to me you have an element that is wider than you think it is.

Also if I were you, I would dump hover and move to hoverIntent.

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic