Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Div Tag Width Changing si Undesireable

 
Ranch Hand
Posts: 2131
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