473,503 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Split button in three parts

maliksleo
115 New Member
Hi

i want to give the background to all of my buttons in my web. I did the following in style sheet.
Expand|Select|Wrap|Line Numbers
  1. input[type=submit] {
  2.  
  3. background-color: black; 
  4. color:White;
  5. }
but now my requirement is changed and i want to give image as background. But the problem is that the size of buttons are different. So plaese tell me that is there any mathod to break the button in three parts and give them images as background?
Please reply fast i am in hurry.

regards
maliksleo
Jul 1 '09 #1
4 5314
acoder
16,027 Recognized Expert Moderator MVP
You can't split a normal button, but if you're using an element to simulate a button you could use 3 elements instead.
Jul 1 '09 #2
maliksleo
115 New Member
@acoder
Thanks bro
actually i want to place a picture for my buttons. But the difference in their sizes and text written on it makes it impossible to place one picture. And i can not make picture of different sizes for my button. What i want is to split the picture in three parts and place it on the buttons background by setting their positions and repeatation settings but i dont know how i can do this :( if any one having any idea of it please suggest me that.

maliksleo
Jul 2 '09 #3
acoder
16,027 Recognized Expert Moderator MVP
This is not currently possible. Safari and one or two browsers have support for multiple background images and it's part of CSS3, but it's not widely supported, so for the time being you'll have to use multiple elements with one image each.
Jul 2 '09 #4
Cmaza
16 New Member
Technically, you *could* achieve what you're wanting to do by using the "button" tag instead of the "input" tag and simply including two different images on either side of text to simulate the effect of a split button, because, unlike "input" tags, "button" tags can support content beyond the simple text values displayed by their "input" counterpart. I've used this in the past when desperate to achieve such as effect. However, "button" tags are not the current standard used to create buttons and there are a number of inherit problems with such a method that will likely cause problems in the correct processing of your forms, so I'm not sure if this method would be desirable or not.
Jul 5 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
11925
by: Warren Wright | last post by:
Hello, We maintain a 175 million record database table for our customer. This is an extract of some data collected for them by a third party vendor, who sends us regular updates to that data...
4
3590
by: Brian Glen Palicia | last post by:
My goal is to accept input from the user into a text box and then parse the data using split(). The first step is this tiny program to test the split() function. It runs in IE, but in Mozilla it...
3
12364
by: Xah Lee | last post by:
Split File Fullpath Into Parts Xah Lee, 20051016 Often, we are given a file fullpath and we need to split it into the directory name and file name. The file name is often split into a core...
4
1583
by: Roshawn | last post by:
Hi, I am retrieving a list of book titles from a web service. What I'd like to do is shorten the titles, if possible. For example, there is a book titled "Malicious Mobile Code: Virus...
14
34879
by: Ron | last post by:
Hello, I am trying to parse a string on the newline char. I guess vbCrLf is a string constant. How can I parse my string - data - on the newline char? .... data += ASCII.GetString(buffer, 0,...
4
6022
by: Michele Petrazzo | last post by:
Hello ng, I don't understand why split (string split) doesn't work with the same method if I can't pass values or if I pass a whitespace value: >>> "".split() >>> "".split(" ") But into...
6
4066
by: Bob Greschke | last post by:
I'm reading a file that has lines like bcsn; 1000000; 1223 bcsn; 1000001; 1456 bcsn; 1000003 bcsn; 1000010; 4567 The problem is the line with only the one semi-colon. Is there a fancy way...
1
1196
by: phpLrnr | last post by:
Hi, I need to split the system date in three parts, I need the day in a variable the month in another and finally the year in another, I allready get the system date with the following code: $toDay...
5
3010
Kelicula
by: Kelicula | last post by:
Hello all. I have a problem which seems to make no sense to me. Therefore I must be doing something wrong. I am trying to populate an array using split with a regexe. Here is the code (snippet...
0
7087
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
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7462
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...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
383
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...

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.