css - Increasing height of a div while dynamically loading content -
I have a div that has an unordered list ... after some user actions I have div with a long list I.e. loaded i.e. use the jquery high level AJAX functions to do this over the last item list.
The problem is that when I load it through AJAX, then the list elements divide the bottom of the divis and some of them are displayed outside the div.
I have not set any height to contain the DAV assuming that it will expand to accommodate long lists of any future. I will post the code below and if someone tells it out, then it will be very grateful ....
# sidebar1 {float: left; Width: 15%; / * Since this element is on, a width should be given * / background: #FFE8BF; / * Background color will be displayed for content length in column, but not forward * / padding: 15px 0; / * Padding up and down make scene space within this div * / text-align: center; } & Lt; Div id = "sidebar1" & gt; & Lt; Div class = "sidebarmenu" & gt; & Lt; Ul id = "sidebarmenu1" & gt; & Lt; Li & gt; & Lt; A href = "#" id = "loadhotel" & gt; Hotel & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" id = "Load Country" & gt; Country & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" id = "LoadCity" & gt; City & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;! - End # Sidebar 1 - & gt; I list elements to and lt; Ul id = "sidebarmenu1">
Hope I'm clear ... long ago thank you ..
You've tried:
$ ('ul #sidebarmenu1'). RemoveClass ('Square Here'). AddClass ('Square Here');
It should work
Comments
Post a Comment