473,769 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using border-image on just one side

31 New Member
Hi guys.

I'd like to use an image as my border on just the right side of a div, to create an arrow shape on a 'continue' link. I've created the image to use and tried to code it myself, but failed miserably on both Safari and Firefox. Here's my current code:
Expand|Select|Wrap|Line Numbers
  1. #continue {
  2. background-color:#ebebeb;
  3. margin:20px 0px 20px 0px;
  4. height:45px;
  5. border-image-right:url("images/continue-arrow.gif") 100% round;
  6. width:80%;
  7. float:right
  8. }
I have no doubt I'm getting something completely fundamental completely fundamentally wrong.

Thanks for your help.
Dec 22 '09 #1
3 10683
drhowarddrfine
7,435 Recognized Expert Expert
Supposed to be 'border-right-image'
Dec 22 '09 #2
seegoon
31 New Member
Well that's just shameful of me, really. I've changed that, but it still isn't working. Does anything else look screwy? I've double checked the filename, by the way, and the actual html definitely calls <div id="continue"> .

Thanks.
Dec 22 '09 #3
seegoon
31 New Member
Okay, I had to go back and scrap trying to just use 'border-right-image' and instead used all of 'border-image', sticking in 0's when I wanted nothing present. Here's how the code looks now, remembering that my arrow is 24px wide:
Expand|Select|Wrap|Line Numbers
  1. #continue {
  2. background-color:#ebebeb;
  3. margin:20px 0;
  4. height:45px;
  5. border-width:0 24px 0 0;
  6. -webkit-border-image:url(images/continue-arrow.gif) 0 24 0 0 round;
  7. -moz-border-image:url(images/continue-arrow.gif) 0 24 0 0 round;
  8. border-image:url(images/continue-arrow.gif) 0 24 0 0 round;
  9. width:auto;
  10. float:right;
  11. }
Seems I was a loooong way off the mark with my initial attempt. But as they say, if you fall off the horse...
Dec 22 '09 #4

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

Similar topics

14
2151
by: Carl Gilbert | last post by:
Hi I am currently writing a site that utilises tables. I have one page that links to a second page. The only problem is that when I link to the second page, the table loads up with a different height than was set in the code. However, when I use the navigation buttons in IE to go back and then forward again to the second page, the table is displayed as expected.
2
3147
by: Olly | last post by:
I have been using border styles on form inputs and I have noticed that on Internet Explorer 5.2 Mac the border color always comes out as link-colour blue, no matter what color I specify. This also happens if I try to give a bottom border to a table cell or a div. Here is an example (see the search box on the homepage): www.focusdiy.co.uk I am defining the style like so:
3
9273
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to work on FireFox or Netscape. What could be wrong? The function: function setActiveTab(tabNo) {
0
2367
by: invinfo | last post by:
I read some NG posts on this and also looked at W3C and others. http://www.w3.org/TR/CSS2/tables.html http://aerie.chirp.com.au/css/bordercollapse/ I could not make border-style: hidden work, next to <TD> with visible borders. I was successful using border-style: none if I used: border-collapse: separate
4
3202
by: Unknown | last post by:
When I create a Table webcontrol programmatically (no static table tag in the aspx file), it renders in the HTML with a border attribute set to "0". If I add my own border attribute--MyTable.Attributes.Add("border", "1")--with a value of "1", the border attribute shows up twice in the HTML tag in the browser. How can I suppress the default border attribute of "0" for the Table webcontrol?
3
2000
by: Bill Endow | last post by:
I've noticed that the WebControl.Table class always outputs the attribute "border="0"", and I cannot stop it from doing so, no matter what I try. I end up with generated HTML that looks like: <table border="1" border="0"> For example, create a new server control that inherits from System.Web.UI.Control, and call it CustomTable. Add an event handler for the Load event: Protected Sub CustomTable_Load(ByVal sender As Object, ByVal e As...
3
1544
by: peshrad | last post by:
Hi ! I'm using ASP.NET 1.1 and C# . For Microsoft Internet Explorer 6.0, the following code suppresses the drawing of horizontal and vertical lines in the web page:
8
3888
by: Warren Sarle | last post by:
Here are two screen captures: http://www.warrensarle.com/borders.gif of this one web page: http://www.warrensarle.com/borders.php in IE and Firefox. A border-style of solid is rendered the same in both browsers. Border-styles of outset and ridge produce radically different colors (grays in this case; saturated colors produce even more dramatic differences) in the two browsers. In particular, a border color of #000000 is rendered as black...
0
1899
by: hari24patil | last post by:
Hi , I am not geting frame border in firefox i want only right border of frame to be show and all other border are hidden it work in IE but in firefox it not show border and due to that i am not able to resize the frame also i am try using border-right-style and frameborder="1" it work in firefox it show all border in IE and i want only right border to show if u have any idea then please mail me.
2
4818
by: bundaism | last post by:
The code below is meant to go through all images on the page, and add a red border on the mouseover, and a white border on the mouseout. It's not working and I've spend too many hours on this - please help! Thanks... code below.... <img src="someImage.jpg"> <script type="text/javascript"> var img_elems = document.getElementsByTagName("img");
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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
9865
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
7413
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
5310
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
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
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 we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.