I'm trying to write a simple JavaScript based modal dialog. The JavaScript function takes the content, puts it in a new iframe and adds the iframe to the page. Works great so far, the only problem is that the content of the dialog (e.g. a table) gets wrapped, although plenty of space is available on the page.
I'd like the content of the...
In FF this border radius doesn't seem to want to work.
Editable link here.
the right radius of the big box should be 0px and the left of the small boxshould be 0 to join them..
...
I gave up on trying to center an image vertically and horizontally. I seen solutions that require you to know the size of the image. I do know background-image will center it properly. However i cannot right click the image and hit save as. Is there a trick i can use to allow this?
...
Hi all,
I have a complex page that has several user controls like galleries, maps, ads etc.
I've tried optimising them by ensuring full separation of html/css/js, placing js at the bottom of the page and trying to ensure I have well written code in all 3 but alas I still have a slow page. It's not really noticeable to a modern browser ...
Hi everybody,
I am having some trouble with aligning two div boxes next to each other;. Or more correctly, I have aligned my two “head” boxes next to each other but my problem is that I am using them as a expand-collapse container and those boxes will not align correctly.
I am posting the entire code beneath and would be grateful if so...
context: I am loading an S6 slideshow from my web page inside an iframe loaded in a fancybox. The code in my parent web page is
<a id='presentation' href='/my/server/my-big-presentation?iframe'>
Launch presentation
</a>
<script type="text/javascript">
$(document).ready(function() {
$("a#presentation").fancybox();
});
</script>
...
How do i vertically and horizontally center an image when i do not know the size of it? I asked this question and someone suggested using a table. This isnt the first time i heard a table can do it but i tried without luck.
Searching SO only got me results when i do know the size of the image. How do i do this with a table?
NOTE: Javas...
I want to display data in a tabular form using <ul> and <li> as shown below:
mydata mydata mydata mydata mydata mydata
mydata mydata mydata mydata mydata mydata
mydata mydata mydata mydata mydata mydata
I cannot use <table>; I have to use <ul> <li>. Actually the problem is with OpenSocial while rendering data coming from JSON <li repe...
Hi everyone,
I just had a question about aligning two expand-collapse boxes and got an answer and it worked but not I have run into another problem.
When I expand, my boxes the text underneath it (the main content) is not pushed down but more “nudged to the right”.
The problem is clear in this code beneath:
<!DOCTYPE html>
<html>
<he...
My horizontal nav bar is populated with images for the links that are coming from one image that includes all the sub-images; each nav item image is identified by the pixel location within the larger image. This works perfectly fine in Firefox and Safari, but in IE, all of the images are misplaced too low within the nav bar (can only bar...
Is there a good reason for this? Lame question, but I just wondered if there was a reason why.
...
I have a hierarchical table I want to display in HTML. The <ul> and <ol> tags work great for the hierarchical part of things, but I want to have 2 or 3 columns total where the leftmost column is indented hierarchically, e.g.
foo
foo1
foo2
foo2a
foo3
foo3a
foo3b
bar
bar1
bar1a
bar1b
bar2
but I also want each item to have som...
I have a div i would like to make clickable. I know i need to make the div (and?) the link have a fixed width and height + display: block. I have an image inside of the div. It seems like the 'clickable' div is actually a large transparent link and this click does not play well with images as it doesnt share space. I need to right click ...
Is it possible to detect if a visitor is on the index page or domain root with client side scripting?
I figure javascript would be the best method as I would like to append a value to an image file based on wether a visitor is on the home page or not.
Non-index page:
<img src="/img/logo.png" />
Index page:
<img src="/img/logo-home....
Can a bookmarklet be used to overlay an image on a web page? Not as a pop-up, but as a image positioned by CSS and with a high z-index to display on top of other elements. And without a mask i.e., Shadowbox or similar jQuery effect. Just an image from a URL and positioned in the bottom left hand corner of the browser window.
This is wha...
a) As far as I know, GridView’s RowStyle-HorizontalAlign property should overwrite CSS’s text-align property, and thus text inside GridView's cells should be located on the left side of the cells, but is instead moved to the right side. Why is that?
b) Similarly, RowStyle-Font-Bold should overwrite CSS’s font-weight property and thus fo...
Given a DIV with a fixed width, is there a way to have it use as much vertical space as it needs by wrapping the content (which is plain text)? The CSS "overflow" property provides for scrollbars (overflow:scroll) and chopping content (overflow:hidden) but that's not what I want.
Help? Thanks
...
Hey guys, I have recently been working on a pastebin script (for fun) and I've come across a problem that I can't seem to solve in CSS. I have a table with 2 columns. 1 column is used to display the line numbers and the 2nd column is used to display the code. I can't seem to get the numbers match up with the lines in the code so it looks...
Hi,
i have an icon image and text like the following, the code source of everything is :
<img src="...." align="absmiddle" /> My Title Here
The problem is that the icon is not aligned vertically with the title in chrome better than firefox.
I think the absmiddle doesn't work at all ! is there any solution, i don't want to use a tab...
So I have a tiny header image that repeats on the x axis, but for some reason it won't show up in IE8. Anyone know a work around? Thanks in advanced.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Con...