Given a stylesheet with various rules, some of them being for hyperlinks, I would like to present each rule (only those containing "a" tags) along with the current value for "color" to allow the end user to click on a colorpicker widget and change the color. Using jQuery Ajax with PHP to save the updated color back to the stylesheet.
Fo...
Hey all,
been banging my head against this one for a while. For a CSS redesign of a site I need a parent div to have a background-image followed by a p child with a transparent background, but foreground text needs to remain at 100% opacity. I tried making a 1px image of a semitransparent (40%) white, but it won't show up when used with...
Currently I'm trying to edit a login screen for a web based application. As of now, I have the login prompt (user & password) at a particular place on page so that it corresponds with the background image. Right now this image is set to 1024x768.
What I was wondering, is there a way to have the background automatically scale depending ...
If I set a style inline like this:
<div id='myMenu' style='background-color:red'></div>
Then in JS call
alert("document.getElementById('myMenu')style.backgroundColor");
The result alert box would report "red"
However if I set the style internally in the via a class or id
<style type='text/css'>
.menu {
background-colo...
I'm setting up an image cluster for a webpage (similar to sprite-map) for performance reasons. I have a utility that generates the master image, and css to reference the image map.
For simplicity sake, I'd rather include the new css after the regular css file, instead of writing a script to search and replace all the classes in the orig...
I have a rather colorful background, and to make the text legible, it's set on a semi-transparent background. H1, P both show the background the full width of the divs. spans and as however only show the background for where they are. This latter behavior is what I would prefer, definitely for the Headings, but also possibly for the para...
Really, wondering and don't know why, on the initial load, the "<'p'>" element that holds content is scaled up, the fontsize, if i change orientation of the device it will then adjust scaling and keep it at declared font size that originally was intended, but that initial load. any ideas why?
...
How can I maximize the size of the div that plays the role of "content"?
I recognize that this may simply be a basic CSS question, but it feels like it is tied to CSS in jQueryMobile.
I'm placing a Google Map in the content div and I'd like the map to fill the available verticle space on the mobile browser. Instead, it's a fixed size ...
I have a table built from a dataset that is displayed in a partial view. The table is larger than the bowser.
How can I get the table to scroll horizontally in my partial view?
...
Hi All. I am trying to create a board game using html/css/javascript to be played on the iphone. My board is a 2d grid designed using a table with 128 elements both in height and width and each element is 128x128px.
I want the game to start in the center of the board. That is the vertical and horizontal scrollbars roughly in the center o...
This has been asked many times, i'm sure, but i was curious if it's possible to upload a PDF to some site, keep it private, and get back HTML/CSS? Or, is there a way with ColdFusion to do this? It needs to be damn near the same as the PDF. I heard through a developer at a hackathon there was a PDF converter that uses the Webkit engine, b...
I have following CSS:
background-div: url(/images/top.png) no-repeat top center;
and I am using the following filter for IE6: ( Transparent PNG Hack)
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader
(src='/images/top_arrow.png',sizingMethod='scale');
How can I add the background position (i.e. top center) to the filter...
How should I do this in Javascript?
// CSS
*::-moz-selection{
background:transparent;
}
I tried these but doesn't really works:
// Javascript
document.mozSelection = "transparent";
document.body.mozSelection = "transparent";
...
I have a rather large table data I need to print, but when I go to Print Preview or Print, I only see what's currently visible on the page, and not the entire content of the web page.
This happens in all browser. What could be causing this?
...
The code below echoes out an HTML table, populated with values from a MySQL database. The CSS changes when a field called "topten" equals 1.
When "topten" equals 1, I would like to have a rectangular background 100 pixels high, 800 pixels wide, and color #A6FFFF;. When "topten" does not equal 1, I would like there to be no backgroun...
Currently I have a web part with some custom CSS. This is a Document Library web part which also contains the link to "Add a new document" below.
Once I click Add new document I am taken to the upload document page. Is there any way to have the upload document section displayed on the same page or is there an easy way to custom style ...
Hello.. I am developing a website and everywhere i have this annoying problem... I wonder how other sites dont have this problem... any suggestion?
stackoverflow has this problem as i see...
http://inath.gr/ this site for example at the top menu although it has <a> tags there is no rectangle arround it when selected somehow..
...
Sample Link
I am using jquery cycle to slide through these images I am having issues in iOS webkit getting the #imagegallery img to scale 100% width.
Any Ideas?
...
I am trying to align a text Email and textbox for it on top of an image at a specific location. I want the position to be fixed, no matter what size the screen is. Here is my html code:
<html>
<head>
<style type="text/css">
#container
{
background-color:blue;
}
#content
{
background: url('images/orange.jpg') no-repeat center top;
}
#c_...
I have a webpage where I can click on it to add a image. If I then click on the image it makes it bigger and if I click again it resizes it back to the original size.
If I then click somewhere else on the screen I can create another image and grow and shrink this also by clicking on it.
The problem is only the latest image can be resized...