Currently, for things like background images, our css files have no domain specified. This works both in our development and production environments.
background-image: url(/images/bg.png);
For performance reasons (cookie-less domain), we'd like to switch this:
background-image: url(http://staticimagedomain.com/images/bg.png);
Idea...
I would like to load a webpage on an iframe and then change some styles from the parent page through javascript. The webpage to load on an iframe isn't on my domain. I mean, it can be some random page on the web. Is this possible? If so, how?
...
I have a web page that is displays differently in Firefox and Safari (IE testing yet to come).
The page displays as expected in Safari, but there is a 50px margin between the body and the HTML that I can't determine what is causing it.
Here is the CSS for the body:
body {
font-size: 13px;
line-height: 1.333em;
background: #f6ea...
My problem is with my navigation links. I've created a class for the links so that the link color is different from the typical links throughout. The problem is that the color defined in a:visited is taking precedence over the color defined in a:link.
I've tried everything and can't work this out. Any suggestions?
...
Hi there,
I'm creating a set of input fields and using javascript's .style.backgroundColor = "red" to change the colour of any invalid fields.
In Chrome, there is no problem. However, in Firefox, as soon as I touch the backgroundColor (even if I set it to white) then I get these strange shadow effects.
Does anyone know what's going o...
Whenever I find IE is displaying my website weird (different from chrome and firefox), I try putting a zoom:1 in the css class for the part that is being displayed weird. A lot of the time this fixes the problem and makes it look consistent with the other browsers.
Is it a problem to use zoom:1? I know my CSS won't validate, but are t...
I'm trying to make a webpage where it basically looks like a word document. There would be multiple boxes that would scroll down and the text would flow and page break from one page to the next.
Does anyone have any idea where I would even start? Thanks.
Edit: It should be right in the browser, looking similar to this:
(Ignore the c...
I need to be able to change the background-image property of a SELECT drop-down using JavaScript/CSS. We have been able to accomplish this in Firefox, but it doesn't appear to be supported at all in IE.
From what I've read, IE won't support this. But I'm wondering if there's anything else I could try. Does anyone here have any recommend...
Hi all,
I'm in the process of developping a Web Application for mobiles. I
went with web applications because to me it seems a winning situation
having to develop one application that could run also on iPhone /
Windows Mobile / Palm etc.
I started testing today after a few days of doing concepts, ideas and
designs and what I wanted to ...
Hey guys, quick question, all I want to do is resize an image to fit inside a small container when I run this function. Right now, only a portion of the image is shown inside the div. If anyone has any ideas, I would appreciate any advice.
$(this)
.css({
backgroundImage : 'url(' + src + ')', // set background imag...
I have a problem with my site.I cant make the table appears on the img. It appears down of the image or up of the image. I need some help with the codes. Actually i dont want the img to reapet and to fit in users window everytime. The code to insert the img is this
<body oncontextmenu="return false;" background="bg_body.jpg">
And the...
http://jquery.malsup.com/corner/
I tried but it fills color at corners
in place of white i need transparent corner with 0 opacity.
...
I have a narrow header in corporate colour, bright red, with the content below on a just-off-white background. Ive tried softening the long line where these colours meet using border type divs with intermediate backgrounds, but I think I need the original type curved gradient 'area transitions'. I want to reduce the contrast between re...
In this page:
http://tinyurl.com/widthheight
I am usign max-width and max-height.
Work fine for Firefox, Chrome, Opera, Epiphany, ecc but NOT Internet Explorer.
.
What solution do you recommend in this case ?
I have to limit max-width of 180px and max-height of 180px.
...
How do I float a div "menu" on top of my Google Maps API "map" div. And maybe possibly add a transparency of 50% on the menu div. Can this be done?
#map {width: 835px; height 540px; float: left;}
#menu {width: 145px; float: right; padding-top: 10px;}
<div id="map"></div>
<div id="menu"></div>
...
I have a div which I am using as a footer to display some content. I have put the style as:
.pageFooter{
position:absolute;
bottom:0px;
width:100%;
height:25px;
background:#e6e6e6;
}
This style works well when there is not content in the body of page. But when I populate the page with content, say datagrid, the div...
I have a page that I'm converting to PDF. This page contains a number of paragraphs and they don't all fit onto a single page. If I could reduce the spacing between the <p> tags, this would help fit more. Is this possible? Thanks.
...
I have a table with dynamic data.
And there is a specific line of text which should be displayed only when a user hovers over the table row. This line of text should be 'fixed' to the table cell's bottom edge.
It works so far with Firefox, but fails in IE.
Live code can be seen here: http://2010resolutions.org/test/index.html
The text...
How would you go about evenly spreading elements across multiple lines, for example:
wrapper div: <div style="text-align: center">
elements inside: <div style="display: inline-block;
padding-left: 10px; padding-right: 10px;">Element</div>
Instead of only having one element on the next line (wrapped):
Element 1 ...
two questions:
--1-- it displays all the number of pages. but i'd like it to display as:
<< Prev . . 3 4 [5] 6 7 . . Next >>
--2-- when i hover on the current page no, it should change color or increase the font-size, but when i modify the css of a:hover, all the page nos change color or size instead of the one which i'm pointi...