Hi,
In this article, http://css-tricks.com/css-sprites/, it talks about how can I crop off a smaller image from 1 bigger image. Can you please tell me if it is possible/how I can crop off a smaller image and then scale the cropped off region before I lay it out?
Here is an example from that article:
A
{
background-image: url(http:/...
What's the best way to find all of the background images on a given page using javascript?
The ideal end result would be an array of all of the url's.
...
I wish to have a page that has a fixed height (without scroll bars). Then underneath the header a fluid height div that does have a scroll bar(not the entire page). Also, the width is to be fluid on the entire page.
This is illustrated below:
What should i do in HTML so that it works in all browsers including IE6 ?
EDIT: CODE CHANGE...
Hi
I have the following html and css. But what I can't figure out is how to have the tabs div at the right of the main div. So that they stick out the right like bookmarks.
.main {
-moz-border-radius:10px;
height: 75%;
width: 60%;
position: absolute;
top: 15%;
left: 20%;
right: auto;
}
.tabs {
width: 5...
<div>
<div class="left">
<div align="center" class="node">
<div class="nodeText">
<h2 >test</h2>
</div>
<div class="node">
<h2>test</h2>
</div>
<div class="node">
<h2>test</h2>
</div>
<div>
I need to center text in div nothing seems to work
.left {
float:left;
width:200px;
border:solid 1px ...
Here's an example: http://la.truxmap.com/truckpage?id=coolhaus
When I make the browser window narrower from the right hand side, the recent tweets div will go underneath the container div. i want to make it so that the recent tweets div can go no further left than the right hand border of the container div. Ive been trying to figure ...
I try to get a thin border with round corners for the tip in qtip, using:
border: {width: 1, radius: 7, color: "#B8E25E"}
(Like explained here: http://craigsworks.com/projects/qtip/docs/tutorials#borders)
But the border is then getting quite thick, like 7 or something, is there a way to get a thin border with round corners?
...
Which browsers have support for CSS :before { content: "x"; }? I could not find any information about this question. It seems that the CSS attribute content is quite unknown in the community although seemingly useful.
...
Hello all,
I've got a horizontal menu on my website: http://www.alcmariavictrix.nl
When i browse it in small browsers (IPhone), the horizontal menu on top is screwed. What i want to perform is get that horizontal menu to the left when the browser can't display it all in one line.
Does anyone know how to do this?
example:
The right wa...
I have a page that uses a background image to do rounded corners, and in IE8 on Windows XP the background image repeats.
http://j.mp/c5h1Hf
It looks right in other browsers and even in "Compatability View" in IE8.
Does anyone know how to remove the repetion? I'm stumped!
...
I wanted to make a GWT widget using UiBinder. So I made:
UserPanel.ui.xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:with field="res" type="com.example.resources.UserPanelResources" />
<g:VerticalPanel st...
Hello,
Imagine I have the following code (simplified regarding my real context of course):
<div id="box" style="width: 120px;" onmouseover="this.style.width='200px'" onmouseout="this.style.width='120px'">
<div>A label</div>
<div>Another label</div>
<div>Another label, but a longer label</div>
</div>
What I want to achieve...
another question related to my previous question
My horizontal menu also goes down a few pixels on my iPhone
see:
wrong on the IPhone
Right on the comp
Does anyone know how to fix this? :)
link is here: Alcmaria home page
...
In Firefox 3.6, IE7 and Opera 10 on Windows, this HTML has an odd behavior:
<html><head></head>
<style>
span {
font-family: monospace; background-color: green;
}
span.b {
font-weight: bold;
}
</style>
<body>
<span>Text</span><span class="b">Text</span><span>Text</span>
</body>
</html>
The bold span in the middle is shifted dow...
hi,
I have a 4000px width image slap on the header of my site. for now, the way I hide the horizontal browser scrollbar is with this:
html
{
overflow-x: hidden;
}
Unfortunately that will make the horizontal scrollbar never appear. I would the browser scrollbar to appear when the main content of my site is hidden from view.
Wha...
Hello, I am inexperienced with jquery, and I'm having some trouble with the slideUp() and slideDown() animations.
I have been working on a vCard design similar to Tim Van Damme's site. here is the link to the design: link. When you click on the portfolio or work button, the text or image appears first before the div finishes sliding do...
Hi, I am new in Flex. Was just wondering what is the difference between skin and CSS??
Why it is better to use skin over CSS in Flex. Could anybody please clear my doubt.
Thanks!!!
...
Hi
<a href="#"><img src="logo.gif" onClick="alert('hi')"/></a>
In the above code, I am appending a javascript onclick method to the image tag. When I click the image once and I press back, it should go back to the page it came from. Instead its staying on the same page. Is there any way I can avoid that? (probably set something else ...
Is there any performance difference between:
p {
margin:0px;
padding:0px;
}
and omitting the final semicolon:
p {
margin:0px;
padding:0px
}
Thanks in advance!
...
Is it possible to add a horizontal scrollbar to a text box that works in all browsers?
Currently if the text value is bigger than the size of the text box you have to highlight the text and move cursor to the right to see the rest of the text. I'd like user to have a scrollbar to use instead.
...