User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 363,554 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,863 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 4535 | Replies: 8
Reply
Join Date: Jun 2004
Posts: 207
Reputation: cmills83 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
cmills83 cmills83 is offline Offline
Posting Whiz in Training

Border-top-image no worky

  #1  
May 19th, 2005
Here is what I have...everything works except the entire top border does not. I have tried it this way and also border-top-image:...Does anyone have any ideas!? thanks!

<style>
.about {
font-family:"BankGothic Md BT";
font-size:12px;
border-right:1px solid #FB9709;
border-left:1px solid #FB9709;
border-bottom:1px solid #FB9709;
border-top: 1px solid #FB9709 url('tab.gif');
text-align:left;
word-wrap : sWrap;
width:275px;
background: #fff;
}
</style>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Border-top-image no worky

  #2  
May 19th, 2005
you can't use images as borders.
use a background image set to tile across the top instead.
background: url('tab.gif') 0 0 repeat-x;
Reply With Quote  
Join Date: Apr 2004
Location: Fort Oglethorpe, GA
Posts: 44
Reputation: LoriL1212 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
LoriL1212's Avatar
LoriL1212 LoriL1212 is offline Offline
Light Poster

Re: Border-top-image no worky

  #3  
May 20th, 2005
As Dave said, borders can't be images.

So, open the image that you want up there in your graphics program and at the top add the "1px #FB9709" line to the image.

Then use this:

.about {
width: 275px;
background: #FFF url('tab.gif') no-repeat top;
font: "BankGothic Md BT", Arial, sans-serif;
border: 1px solid #FB9709;
border-top: none;
text-align:left;
word-wrap : sWrap;
}

That should do it
Lori Leach :: zenful creations :: kudos :: musings :: flickr
Reply With Quote  
Join Date: Apr 2004
Location: Fort Oglethorpe, GA
Posts: 44
Reputation: LoriL1212 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
LoriL1212's Avatar
LoriL1212 LoriL1212 is offline Offline
Light Poster

Re: Border-top-image no worky

  #4  
May 20th, 2005
oops, double post.
sorry.
Lori Leach :: zenful creations :: kudos :: musings :: flickr
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Border-top-image no worky

  #5  
May 20th, 2005
I'm lost... why not leave the border off the image and just let it go all the way round?
Reply With Quote  
Join Date: Apr 2004
Location: Fort Oglethorpe, GA
Posts: 44
Reputation: LoriL1212 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
LoriL1212's Avatar
LoriL1212 LoriL1212 is offline Offline
Light Poster

Re: Border-top-image no worky

  #6  
May 20th, 2005
Originally Posted by DaveSW
I'm lost... why not leave the border off the image and just let it go all the way round?

Not sure who you were addressing, and really not sure what you are asking either, LOL.
Lori Leach :: zenful creations :: kudos :: musings :: flickr
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Border-top-image no worky

  #7  
May 20th, 2005
Yeah I was sort of replying to you. When you said:
Originally Posted by LoriL1212
open the image that you want up there in your graphics program and at the top add the "1px #FB9709" line to the image.
I took it to mean putting the border directly onto the image, and then the css blanks off the css top border.

I just wondered why go to those lengths when all you have to do is leave the image intact and put the top border across it using CSS...

Maybe not?
Reply With Quote  
Join Date: Jun 2004
Posts: 207
Reputation: cmills83 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
cmills83 cmills83 is offline Offline
Posting Whiz in Training

Re: Border-top-image no worky

  #8  
May 20th, 2005
Alright, thanks!
Reply With Quote  
Join Date: Apr 2004
Location: Fort Oglethorpe, GA
Posts: 44
Reputation: LoriL1212 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
LoriL1212's Avatar
LoriL1212 LoriL1212 is offline Offline
Light Poster

Re: Border-top-image no worky

  #9  
May 23rd, 2005
Originally Posted by DaveSW
I just wondered why go to those lengths when all you have to do is leave the image intact and put the top border across it using CSS...

Maybe not?

Well, depends on the image... if the image that needs a top border is not the same width as the container box (ie less width), then the border would extend beyond the left and right of the image

Hard to say without seeing the image

Was worth a try to post !
Lori Leach :: zenful creations :: kudos :: musings :: flickr
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 5:13 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC