473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to remove Button shadow

Hi I've an image submit button on a form that needs to appear flat on
the surface. I can't get rid of the shadow that appears bottom and
right.

This is the best I can do.

<code>
..SearchButton
{
width=100;
margin-left:-5;
border-style:none;
cursor:hand;
}
</code>

Can any suggest settings that can remove the shadows?

Cheers

John South
Pangbourne

Jul 21 '05 #1
5 35639
Jo*******@WhereCanWeGo.com wrote:
Hi I've an image submit button on a form that needs to appear flat on
the surface. I can't get rid of the shadow that appears bottom and
right.


The following url explains how to style your submit button:
http://www.themaninblue.com/writing/...ve/2004/04/28/
Jul 21 '05 #2
In article <42*********************@dreader2.news.tiscali.nl> ,
Roderik <ma**@roderik.net> wrote:
Jo*******@WhereCanWeGo.com wrote:
Hi I've an image submit button on a form that needs to appear flat on
the surface. I can't get rid of the shadow that appears bottom and
right.


The following url explains how to style your submit button:
http://www.themaninblue.com/writing/...ve/2004/04/28/


Yeah, but the info there doesn't work on Safari, Camino, or Opera 7 on
the Macintosh. The page didn't display very well in IE 5.2. It's
_really_ broken in iCab, but that's probably because iCab is really
broken on the Mac.

The form field didn't display on Safari either.

Why do lazy web designers assume that Windows is the _only_ platform?

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 21 '05 #3
On Thu, 19 May 2005 23:02:43 -0700, Michael Vilain
<vi****@spamcop.net> wrote:
In article <42*********************@dreader2.news.tiscali.nl> ,
Roderik <ma**@roderik.net> wrote:
Jo*******@WhereCanWeGo.com wrote:
> Hi I've an image submit button on a form that needs to appear flat on
> the surface. I can't get rid of the shadow that appears bottom and
> right.


The following url explains how to style your submit button:
http://www.themaninblue.com/writing/...ve/2004/04/28/


Yeah, but the info there doesn't work on Safari, Camino, or Opera 7 on
the Macintosh. The page didn't display very well in IE 5.2. It's
_really_ broken in iCab, but that's probably because iCab is really
broken on the Mac.

The form field didn't display on Safari either.

Why do lazy web designers assume that Windows is the _only_ platform?


Because 1) they do what their clients ask and 2) clients are happy to
ignore a small minority of users due to budget constraints of ensuring
universal compatibility

--
Thomas
Jul 21 '05 #4
Jo*******@WhereCanWeGo.com wrote:
Hi I've an image submit button on a form that needs to
appear flat on the surface. I can't get rid of the shadow
that appears bottom and right. .SearchButton
{
width=100;
Incorrect syntax.
margin-left:-5;
5 what?
border-style:none;
cursor:hand;
No such value.
}
So when all the wrong stuff is removed your css boils down
..SearchButton { border-style:none; }

But you say that doesn't remove the border on some element?
Can any suggest settings that can remove the shadows?


Form elements are often hard to style because in many cases they are
part of the operating system and hence not totally under the control of
the browser's rendering engine.

However, you say that this is an "image submit button". Do you mean a
<input type="image"> button? Most modern browsers will not show a
border around those if you use border: none; or border-width: 0;

If you don't mean <input type="image"> or if you don't mean a border
when you talk about 'shadows' then you'll need to post a URL showing
the problem and tell us which browsers demonstrate the problem.

Steve

Jul 21 '05 #5
Michael Vilain wrote:
In article <42*********************@dreader2.news.tiscali.nl> ,
Roderik <ma**@roderik.net> wrote:

Jo*******@WhereCanWeGo.com wrote:
Hi I've an image submit button on a form that needs to appear flat on
the surface. I can't get rid of the shadow that appears bottom and
right.


The following url explains how to style your submit button:
http://www.themaninblue.com/writing/...ve/2004/04/28/

Yeah, but the info there doesn't work on Safari, Camino, or Opera 7 on
the Macintosh. The page didn't display very well in IE 5.2. It's
_really_ broken in iCab, but that's probably because iCab is really
broken on the Mac.

The form field didn't display on Safari either.

Why do lazy web designers assume that Windows is the _only_ platform?


Forms and form elements are merely an OS dependant thing and therefore
they should not be styled. You might have them styled well for now, but
when for example Windows Longhorn with its new IE comes it might look
completely wrong (but most often it is somewhere in between the OS style
and the described style in your code).
If you want it OS independend try to avoid form elements (although I
won't recommend to do so), use a normal image or hypertext link to fire
a javascript that submits (the javascript disabled browsers would have a
problem then, but you might offer them a normal submit button, but that
requires another workaround, bla, bla....).
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Acer | last post by:
hi, what's the best way to display pictures with an automatic generated shadow ?
5
by: bart plessers | last post by:
Hello, Somewhere in my code I have <input TYPE="button" NAME="btnFirst" VALUE="<<" OnClick="GetFile('1')" DISABLED> I changed the layout of the INPUT with a stylesheet to INPUT { color:...
0
by: bart plessers | last post by:
Hello, Somewhere in my code I have <input TYPE="button" NAME="btnFirst" VALUE="<<" OnClick="GetFile('1')" DISABLED> I changed the layout of the INPUT with a stylesheet to INPUT { color:...
6
by: Skip Hollowell | last post by:
I am working on a menu bar for a site, and am using buttons in the bar (because the customer wants to use accessKeys for each selection, apparently it is too much work to click on them with a...
4
by: Barry Kelly | last post by:
I'm designing an application framework which will, amongst other things, live in an assembly hosted in the ASP.NET worker process, servicing webservice requests. Here's the scenario: APPFX is...
0
by: Damien Anselmi | last post by:
I am using the CompileAssemblyFromSource method of an ICodeCompiler instance to dynamically compile an assembly used by a Web Application. The assembly may be recompiled any number of times during...
2
by: Oenone | last post by:
I have an application which loads plugin DLLs from various directories on the local disk. To avoid problems with the DLLs being locked by IIS, I have modified my code so that it copies the DLLs to...
16
by: eholz1 | last post by:
Hello CSS group, I saw a beautiful effect that I would like to use either by CSS or using photoshop to create the image/effect (maybe even imagemagick) the site address is:...
1
by: =?Utf-8?B?TWFyayBDb2xsYXJk?= | last post by:
I've created a form and added the following code in the CreateParams property to display a drop shadow on the form. protected override CreateParams CreateParams { get { CreateParams...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.