Avoid page breaks in elements in Firefox (JavaScript?) stackoverflow.comIs there anyway, using JavaScript or CSS to prevent page breaks inside of <tr> elements in Firefox? I'm assuming since FF still doesn't support page-break-inside that this has to be done ...
I have a relativly simple HTML layout where I have a heading div, then below that is a Main div that contains a NavBar on the left side & a ContentDiv ... |
Using position:fixed fixes an element both vertically and horizontally, but I want my element only to remain horizontally fixed. That is, I want it to scroll vertically with the rest of ... |
Say I have a parent div with width 500px. It has 13 child elements that should fill its width.
If I give each child element a width of 500 / 13 = ... |
I am trying to change the visisbility of a row of elements.
I am supposed to display the elements only if the user selects the button.
HTML code :
<tr style="display:none">
...
|
I create an element by Javascript and apply it to another element, I also have a CSS File with styles for this new element, I check the code, the new element ... |
I want to set float values for the first three li present in my HTML using javascript. I have named the parent ul as "something". Is it possible to set the ... |
Why I am getting Element offsetHeight "0"? even element original height is not showing
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
/* Added for Menu ...
|
The HTML elements' position are determined in a linked CSS.
div.title
{
position:absolute;
top:12px;
}
I can only use document.styleSheets[0].cssRules[0].position to find the value of the position ... |
I'm trying to manipulate a div element. Although I have defined certain property values, I can't seem to get the initial values.
Here's the problem: Fiddle
I'm at the end of ... |
I have a webpage which has content layout like 1,2,3 in markup (and also for no-js
) while visually I want it to be 2,3,1.
I'm using Javascript (jQuery) to swap their position. ... |
I have a slider on my page that has a height of 200px and has overflow hidden applied, inside this slider there are list items/images which are aall also 200px. When ... |
I have a parent element (e.g. a div) which surrounds some dynamic content. I would like the parent div to fully contain the child elements in as many circumstances as possible. ... |
We have an application with a search popup. You search for a term, and it finds them in the page and add a class to the word which in turn highlights ... |
So if there is a css file linked to a webpage like:
<link href="style.css" rel="stylesheet" type="text/css">
and i want to read a certain property, e.g a div has className='layout' and i want to ... |
Is there a way to get the browser to show a paragraph element even if it is empty?
I am finding that if a p element has no text in it then ... |
I have the following code for stacking of elements and on putting the cursor over an elemnt that element comes to the top.
Here is the code.. It is not working for ... |
The idea is to reduce text length to fit into a box of a specific size and append "..." at the end. The box is single line.
It seems solutions I have ... |
I have a DIV that gets its height from a CSS class in a separate stylesheet. But that height is sometimes changed in Javascript. Can I read the CSS height direct ... |
I am having problem with my floating navigation bar. The folating bar should be above everything but when I scroll through my webpage the form fields and some other elements of ... |
I'm working on a site that is going to have tabs similar to those you can find on the product pages of newegg.com. I'm wondering if I can make changes to a specific elements CSS with Javascript. Normally, I use and ID to select the element that I am going to modify, and then use the javascript to define CSS ... |
Hi I am fairly new to JavaScript and I've got a really simple question. Its so elementary it is almost rediculous. I got a piece of html that contains a form which holds a picture. the picture is inside a tag. The form also contains a button which calls a javascript function. When the user clicks the button, the javaScript ... |
Hey there. Basically I have a css class that applies to a data table that I re-construct constantly. The problem is on page load, the "HOVER" property works, once a selection / criteria change has occurred, it not longer works, ALTHOUGH the rest of the properties are retained ( color, size, border, etc.. ) Any suggestions? Im posting this in the ... |
yeah, the color change is called on an event. i do have another question that maybe someone might help me tackle. I'm basically trying to do a pull down menu. You can check out what I'm trying to do here: http://www.texasmocktrial.org/concept/index.php the JS file is here: http://www.texasmocktrial.org/concept/templates/menu.js The script itself was open source that I downloaded. I'm trying to customize it ... |
Ok, here are two links to a site I am developing: http://tmh.netdbs.com/meyers2 (I am very happy with this page) http://tmh.netdbs.com/meyers2/gallery.htm (this page I have a question) You will see a link titled "Change Background". This is a ul relatively placed in an absolutely placed div. The li's for this ul each have a unique class defined, thus the multiple colors. I ... |
|
not sure if I phrased that correctly but if I have this css container: #frame1 { position: relative; width: 90%; padding: 0; } #frame1 table { width: 1200px; } how do I edit the table of the container frame1 in javascript? you can obviously do this: document.getElementById("frame1").style.display = "block" but how would I change the width of ... |
How to display List elements horizontally(using CSS probably) in a JQTouch toolbar I have a <'div'> element, containing a <'ul'> with four <'li'> elements. What I need to do is set the <'li'> to display in horizontal orientation, and within the <'div'>. When I apply the JTouch class="toolbar" to my <'div'>, what I see happening however is the the <'li'> elements ... |
On a totally unrelated note, I JUST posted the above -- 19 minutes ago, and that post just turned up in a Google search! Wow... that is the fastest [coincidental?] indexing ever. And if you're wondering, I'm completely logged out of all Google services, I don't use Google Desktop, and well... wow. Incredible. |
|
I see. I had a feeling it was someting like that. So with Javascript there is no way of actually retrieving the CSS 'background-color' property of a specific document element? I don't want to initialize it with script if I have to hardcode the colour. I want to be able to specify the colours in the CSS. |