473,466 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Create 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 10591
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
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...
2
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...
3
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...
0
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...
4
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...
3
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: ...
3
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
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...
0
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...
2
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 -...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.