div

Why does sIFR chop off letters?

What would cause the bottom of characters like p, f, y to be invisible when using sIFR? ...

div that stays on top of status bar

hello Sir i have been searching over a month for a solution like this,,, the div on website below that have search at the bottom and it always remain sticked above status bar if u scroll down. http://www.outlawdesignblog.com/ can u kindly point me to a solution ...

using JS to lock out a div

Hello, is there anyway I can use jQuery to lock out a div, ie, make the div grey out, on the submission of a button? $('#buttoncancel').click(function() { $('#radiodj').hide('slow'); } ); Currently, that hides the radiodj div as you can see, but how do I make it so that the div becomes greyed out/disabled, using jQuery? ...

Using BlockUI with JS hide = no go?

Hello, I am trying to use BlockUI with jQuery's hide, however, not everything's going to plan. Currently, upon script load, the said div (radiodj) hides itself. When user clicks on a button, the div shows up. Now, here's the problem. When user clicks on a link inside the div, the div hides away again, but the link action is performed, i...

How to load data from external file with jQuery

Hello, I am attempting to use AJAX in jQuery to load content to a div, however, it is severely failing: Here's the javascript: $(document).ready(function() { $('#webdev').hide(); $("#apply-webdev").click(function() { var form = $("#webdev"); var formContent = form.find("#webdev"); form.slideToggle(); ...

How to align elements on the inside edge of a <div> tag?

How do I align an element on the inside edge of a tag? That is, so that it works like absolute positioning but only inside the tag. I think a way it would work is if it were possible to force the element to think the tag was the actual page, but I don't know if this is possible/ideal. EDIT: http://www.flickr.com/photos/chustar/373637...

Using max-height on DIV element

I have a DIV element that is set to contain a table element. The table element will have anywhere from 0 to upwards of 350 rows. I thought the easiest way to size this DIV element was to apply the max-height property so the DIV element would grow as content was added and add a scroll bar once the content exceeds the max-height property...

jquery pagination not working

Hi, I am currently trying to make the pagination plugin work with my site. When I load the page I get no errors when using firebug, but there are no numbers that displayfor the results. It's driving bunkers. Here is the JS file that I am using: function handlePaginationClick(new_page_index, pagination_container) { // This selects 2...

z-index with two relative positioned elements IE7

Hi, I have two elements. One is a searchbox that has to be positioned relatively. The other is an image I would like to overlap part of the search box and it has to be positioned relatively as well. No matter what I set the z-index to, IE7 won't overlap the image. It goes underneath the searchbox. It overlaps and works in Firefox thou...

Internet Explorer z-index bug?

How do you overlap an element over another element that is positioned relatively in Internet Explorer? Z-index doesn't work, it always appears behind the relatively positioned element. ...

document.getElementById fails for single-tag DIV

I have 2 DIVs on an HTML page: <div id="divDebug" /> <div id="divResult" /> I have a script that hits a web service and fills them up with data: document.getElementById("divDebug").innerHtml = rawResult; document.getElementById("divResult").innerHtml = processResult(rawResult); Here's my problem: The above code works nicely in IE...

ViewState, div tags

Hi, I have several Div tags on a page which are dynamic, i.e. depending on certain criteria they are either visible to the user or not. I want to add them to the page's view state so that upon postback they are not hidden again, how do I do this? ...

Div Tables with ASP.NET MVC

I'm trying to find a better way to use a div table with ASP.NET MVC, the problem I see is that you need to do loads of looping, rather than one loop if I had to use a traditional <table> table. Example <div class="column"> <div class="row">Name</div> <% foreach (Person person in (List<Person>)ViewData.Model) {%> <div clas...

Div. Combine precentage and fixed size.

Is it possible? div "menu" and "submenu" needs to be 50px tall. "top" and "bottom" needs to be 60% and 40%. The behinde-the-scene-calculation would be 60% - 50px for "top". <div id="menu"></div> <div id="top"> </div> <div id="submenu"></div> <div id="bottom"> </div> ...

jQuery tabs with both Ajax and static div's

I am posting form data to a page that is using jQuery tabs. Because you can't load post data into an Ajax query (at least without a ton of extra work and making it more insecure), I'm loading the active tab as an actual div on the page. <script type="text/javascript"> $(document).ready(function() { ...

How do margins work with div positioning?

The #content div holds most of the web content. As you can see below, there is a top margin of 280px, because that is the height of the header image of the site, which is placed in the 'body' as a background (image/sky1.jpg). How do I position a div as a holder above the 'margin' of the #content div so that I could place my #navigation...

Show child element above parent element using CSS

I have two divs, one nested inside of the other. The parent element has a defined width/height. How can I show the child div above the parent (outside of it) using only CSS? EDIT: Sorry, maybe I should clarify that I mean "above" as along the z axis. And yes, I already tried z-index. My problem is that when the child element is larger ...

How can I put a vertical line down the center of a div?

How do I put a vertical line down the middle of a div? Maybe I should put two divs inside the div and put a left border on one and a right border on the other? I have a DIV tag and I need to put one ascx on the left (that will get swapped out from time to time with another ascx) and then a static ascx on the left. Any ideas on how I shou...

Set cursor position on contentEditable <div>

Hi There, I am after a definitive, cross-browser solution to set the cursor/caret position to the last known position when a contentEditable='on' <div> regains focus. It appears default functionality of a content editable div is to move the caret/cursor to the beginning of the text in the div each time you click on it, which is undesir...

Can you overlay a transparent div on an image

I ran accross this example in the image below that is done in Flash and I was wondering if a similar affect of having a transparent box at the bottom of an image with text on it is possible with CSS or something other then flash? ...