•
•
•
•
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 373,915 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,732 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: 4650 | Replies: 8
![]() |
•
•
Join Date: Jun 2004
Posts: 210
Reputation:
Rep Power: 5
Solved Threads: 0
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>
<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>
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;
use a background image set to tile across the top instead.
background: url('tab.gif') 0 0 repeat-x;
•
•
Join Date: Apr 2004
Location: Fort Oglethorpe, GA
Posts: 44
Reputation:
Rep Power: 5
Solved Threads: 0
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
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
•
•
Join Date: Apr 2004
Location: Fort Oglethorpe, GA
Posts: 44
Reputation:
Rep Power: 5
Solved Threads: 0
I'm lost... why not leave the border off the image and just let it go all the way round?
•
•
Join Date: Apr 2004
Location: Fort Oglethorpe, GA
Posts: 44
Reputation:
Rep Power: 5
Solved Threads: 0
•
•
•
•
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.
Yeah I was sort of replying to you. When you said:
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?
•
•
•
•
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 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?
•
•
Join Date: Apr 2004
Location: Fort Oglethorpe, GA
Posts: 44
Reputation:
Rep Power: 5
Solved Threads: 0
•
•
•
•
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 !
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
- Image hover inset/outset effect ??? (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: What is DIV & SPAN
- Next Thread: multiple recipients on FP form submission


Linear Mode