This works in Chrome and any other browser that supports placeholder text in HTML5
<input id="name" name="name" type="text" placeholder="Please enter your name..." required /> <br />
But, it doesn't work in 3.5 and earlier of Firefox, and obviously IE8, and possibly other browsers.
How do I achieve the same thing (preferably in HTML...
I remember reading somewhere (a long time ago) that sprites - or at least I think that's what they were called - were better than using two images when you were trying to change an image on hover. I believe the reasoning was something to do with not having a delay. For example sometimes I'll go to a website and go to click on a link and ...
I have a following css
#container
{
border:1px solid black;
}
#container #header
{
color:blue;
}
#container #footer
{
color:red;
}
Can i write it as
#container
{
border:1px solid black;
#header
{
color:blue;
}
#footer
{
color:red;
}
}
...
Hi,
I have a code like
<a href='javascript:showImage()'><img src='/public/visit_images/img1.jpg' width=100 height=100></img></a>
<div class='orig_image' style="position:absolute; width:200px; height:181px; border:1px solid gray; margin-right: 1em; margin-bottom: 10px;display:none;">
<div style="width:200px; height:181px; background:...
This is an expansion of a question I posted a while ago: http://stackoverflow.com/questions/3275997/fitting-a-uls-width-to-accommodate-the-menu-items
Is there a snippet of jQuery code that can adjust the width of every <ul> inside a certain <ul> to make sure the <li> items don't overflow? The menu looks something like this:
<ul id="men...
I'm working with the Symfony Framework,
I have installed the sfDoctrineGuardPlugin. I already have my own homepage design and I'm trying to embed my sfGuardAuth signin/login fields into my homepage. I want them to use my homepage design too.
I paste this into one of my table rows: <?php echo $form['username']->render() ?>
which is bas...
Hi,
I stumbled upon this site http://www.swell3d.com/ and I think that in the future we will have a new hype word "3d website" that is used heavily in marketing. However, what I am interested in is how to create such designs/layouts? How is that funny-looking effect actually applied -- and are there any w3 specs describing ways to detec...
Sort of how this website shows a bar on top when you have new answers or comments, I want to show a very similar bar that just has a line of text in it and an [X] to close it. How would I begin to do this?
...
Whether we can have a form inside another form?. Is there any problem with that.
...
My Problem
When I minimize the browser window the category menu does not minimize the way I would like it to. I would like the li elements to drop one by one below the other other li elements as the window is minimized. The problem is that the whole ul element is dropped below the p element.
A live example of the menu is located here. ...
This works:
a { color: hsla(0,100%,50%,0.2) }
And this does not:
img { color: hsla(0,100%,50%,0.2) }
Is there something like img { opacity: 1 } that allows to define hsl values to an image?
...
I have set of images and checkboxes like below
<form name="food_type_form method="post" action="proc.php">
<img src="images/type_indian.jpg" alt="Select Indian food" />
<input type="checkbox" name="food_type[]" value="indian" />Indian
<img src="images/type_chinese.jpg" alt="Select Chinese food" />
<input type="checkbox" name="food_type...
A HTML5 <button> in Mobile Safari seems to have fixed, unchangeable left and right padding. Here's a demo plus how it looks in Safari 5 and iOS4.
How can I get rid of that padding?
...
Hi everyone,
On this site that i'm working on, http://boldstyle.allthingswebdesign.com there is a gray border-top on the footer ul elements. If you look in FF or chrome, you can see that it creates a subtle effect. If you view it in IE7, the border is way out of place. I cannot figure out why. Please help.
...
So I used CSS to replace the bullets on a webpage with pictures of palm trees, change the fonts, move some items around, etc. The issue I have now is that only clicking the words will activate the link. Ideally I would like clicking the palm tree (the bullet) to have the same effect. Is there a way to do this?
...
I'm using the following template:
http://www.styleshout.com/templates/preview/KeepItSimple11/index.html
The first column is wider than the two that follow it to the right. Simply put, I'm trying reorder the layout so that the wider first column becomes the 2nd column, in between the two narrower columns. I've spent a fair amount of tim...
I want to make some html output look like this...
Tag1 blah blah blah asdfge kedkled pijj ;dopkd
uiedeidiud edioejd
Tagbigger more blah blah blah wdeodeodd epkdepdpd
more of the same...
I imagine the html itself might look something like
<p>Tag1<zz>blah blah blah asdfge kedkled ...
Hello, i can't manage to find where is the cause of the problem :
the page where the css is 'broken' : messy layout
the same page, but with a another text in it shows the result as excepted : good layout
Thank you ;)
...
So I'm trying to create this layout.
Here is a picture of the 3 "boxes" that constitute the page: https://dl.dropbox.com/u/9699560/layout.jpg
And here is my attempt: https://dl.dropbox.com/u/9699560/map.html
The red box is a Google Map, so if its height isn't specified, it shrinks to zero. What I am trying to do is the following:
Th...
Possible Duplicate:
Why my layout / css is screwed ?
Ok, fixing the error reported by W3C did not fixed the broken layout.
the page where the css is 'broken' : messy layout
the same page, but with a another text in it shows the result as excepted : good layout
If with your lynx eye you spot the error, thank you in advance ;...