473,785 Members | 2,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 35727
Jo*******@Where CanWeGo.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************ *********@dread er2.news.tiscal i.nl>,
Roderik <ma**@roderik.n et> wrote:
Jo*******@Where CanWeGo.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************ *********@dread er2.news.tiscal i.nl>,
Roderik <ma**@roderik.n et> wrote:
Jo*******@Where CanWeGo.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*******@Where CanWeGo.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************ *********@dread er2.news.tiscal i.nl>,
Roderik <ma**@roderik.n et> wrote:

Jo*******@Whe reCanWeGo.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
2687
by: Acer | last post by:
hi, what's the best way to display pictures with an automatic generated shadow ?
5
28571
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: #FFFFFF;
0
6646
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: #FFFFFF;
6
7559
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 mouse, but I digress) It seems that the longer the text is in a button, the more padding there is around that text in the button, thus making the button itself much to wide, and wasting too much space on the page. I have tried width:auto in the...
4
4216
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 our application framework assembly. It has no life of its own - it's designed to provide components that are glued together by another, main application assembly - let us call it APP. Thus, APP uses APPFX, and APP is registered with ASP.NET as a...
0
1748
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 a day as a user changes the underlying code. Each time the assembly is compiled it's version is updated e.g. from 1.0.0.1 to 1.0.0.2 and so on. The assemby is compiled into a directory which has been setup to shadow copy using the...
2
2692
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 the /bin/ directory if it determines that they are newer than the version already there, and loads the copy. This then takes advantage of Shadow Copying, so the DLLs never get locked. This is all fine, but the very first time I put a new DLL...
16
14564
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: http://victor.hasselblad.com/. the lead image here is a white photograph (jpeg) on a white background, with a shadow like effect around the entire image. In this case the shadow effect is part of the jpeg, and not
1
3750
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 parameters = base.CreateParams; parameters.ClassStyle = (parameters.ClassStyle | CS_DROPSHADOW);
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10091
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.