I'm working on a Markdown command line program, and I'd like to format source code blocks in the html output a bit better than a simple <pre><code>....</code></pre>.
My criteria are:
I want line numbers shown in front of each line
I want the code by itself to be selectable so that I can copy only the code (and not the line numbers) to...
Hi all,
The scenario is a bunch of divs with flash content inside; clicking on a menu will show / hide these flash-filled divs. Problem is IE7 plays these divs before I "show" them. How can I make sure that IE7 doesn't start the Flash movie until after the div has been "shown"?
Much thanks in advance,
LNV.
...
ie I have a div, below is a hidden div, which is wider than the div above. I want to specify the div inside to have elements with greater widths than the div above. these elements right hand side is aligned to the right hand side of the div above, but since it is wider, want the left hand side to break out. The div below is on a diff la...
Can I control the visibility of some div in my website and make to become see-through using CSS only? In flash it's done through controlling what is called Alfa so I'm wondering if such a thing exist in CSS!
Edition 001
Can I control the opacity of the div's background only? So the text in the div wouldn't be effected?
...
Is it possible to make the following in CSS:
#subMenue {
//this rule apply to a div with an id of "subMenue"
height: auto;
width: 113px;
position: absolute;
background-color: #B3B3B3;
visibility: hidden;
}
#menueLink:hover {
//this rule apply to another div with an id of "menueLink"
//make the div that is effected by *#subMenue* rule ch...
Hi there, i have the following code:
function tryToDownload(url) {
oIFrm = document.getElementById('download');
oIFrm.src = url;
//alert(url);
}
function downloadIt(file) {
var text = $("#downloaded").text();
setTimeout(function(){ $("#downloadBar").slideDown("fast") }, 700);
setTimeout('tryToDownload("index.php...
Hi I am trying to simulate the rowspan property on css using divs and tags, so it can be changed on a:active = double height, but at the moment it grows from two rows to three rows.
It only works when the first column its expanded, if I expand the second, third, etc then it would grow to three rows.
Here its the sample code that works...
I am trying to get the height of a JQuery UI's dialog's div once opened, so that I can set the parent's iframe height dynamically.
However it seems to be returning me the height of the div before the footer button panel and title panel are added. The height for the dialog is set to "auto";
$(this).height($('#dialogdiv').height());
I...
I have a layout in which the navigation is a set of divs stacked on top of each other. Typical stoy, "It works with every browser ever except the worst ones, IE." I want it to not have any space in between the divs in IE.
Here is the URL: http://www.drmsmaggio.com/
I had this problem before when I didn't declare the doctype, but that i...
Basically I want to have that middle blue body part scroll minus the scrollbar at the bottom. I know I can do this with javascript, i'm looking for more of a CSS solution.
On my actual site I have a div that is about 150px high that contains icons/images to do things and then the rest of the content needs to be scrollable vertically too...
Hi all,
I have a DIV section that would like to use it as a "component" in a variety of contexts. For "component", I mean it will be automatically included in some places of the HTML page that could not be foreseen.
The required behaviour of the DIV section is that it's width should be always 100%, meaning it should totally fill the pa...
Hi,
I've been trying to get the height of a DIV using "dojo.marginBox", but I keep getting the wrong height in IE6.
Here's part of my code:
<div id="outerDiv">
<div id="hiderDiv" class="hider"></div>
<div id="contentDiv1"></div>
<div id="contentDiv2"></div>
<div id="contentDiv3"></div>
</div>
The CSS for the "hiderDiv" looks...
I am trying to make box to be fixed in the lower right border of the page and doesn't move with the page scrolls down. But it's not working for me dunno why. Here is my code:
<html>
<head>
<style type="text/css">
.tooltip {
width: 200px;
position: fixed;
top:auto;
bottom:0px;
right:0px;
left:auto;
}
</style>
</head>
<body>
...
i have this code
Code:
<div id="container">
<div id="products_content">
<div id="products_page_header">
<div id="products_page">
<div class="post">
<div class="entrytext">
some text
</div>
</div>
</div>
...
Hi,
I have a <table> generated from code-behind and now facing a problem. In one of the TD i need to have a DIV that is setup with JQuery so that when i click a link the DIV slideToggles. Now i need the TD belonging to that TR not to expand the TR.
To solve this i have used an old trick that is to place the JQuery DIV inside another su...
Hi there, i have three div's on a page with same ID's
<div id="downloaded">1200</div>
Now when i call the function downloadThis("filename","divID"); i want that the value of every div with id "Downloaded" should change, i am using jquery. Kindly help.
...
I'm using jQuery to refresh content in container DIV. When the refresh link is clicked, I call jQuery to remove() the content DIVs and then load() to re-create them and the content.
The problem is I have menus and navigation at the bottom and when I refresh the content, all the bottom nav gets pushed up temporarily after the DIVs are re...
Im trying to implement a jQuery toogle div. When you click the image (image of a down arrow) the content will slide down. Now when this happens the image is SUPPOSED to now show an arrow pointing up (but it just goes blank), clicking the up image should slide the content back up and out of view.
$("img.toggle1").toggle(function(e){
...
I am trying to change my "inner" div's width dynamically on the click that the images are changed (which works) with a similar script. I cannot get the script to work, any help fixing it, or changing it would be appreciated. I am a noob in javascript so please be nice ;-)
<script type="text/javascript">
function setBase(baseval) {
...
Suppose I want to embed the latest comic strip of one of my favorite webcomics into my site as a kind of promotion for it. The webcomic has the strip inside of a div with an id, so I figured I can just embed the div in my site, except that I couldn't find any code examples for how to do it (they all show how to embed flash or a whole web...