Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Rounded corners - eliminating space
Old 04-24-2007, 03:15 PM Rounded corners - eliminating space
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
Hey there gang -

I'm trying to do a rounded corners thing - the problem I'm having is that there is a gap between the image used to make the top corners and the body of the rest of the content. I've tried lots of stuff, and just can't eliminate that gap. Any help would be so so appreciated.

http://www.jessweiss.com/sciatica/index2.html

TIA!
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
 
Register now for full access!
Old 04-24-2007, 03:33 PM Re: Rounded corners - eliminating space
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Try this:

Code:
<a href="/sciatica/index.html">
<img src="http://www.jessweiss.com/sciatica/banner5.gif" border="0"></img></a>
Add that "border="0" part. I saw that you have no border declared in your css, but I think the browser is still adding something there.
angele803 is offline
Reply With Quote
View Public Profile
 
Old 04-24-2007, 06:24 PM Re: Rounded corners - eliminating space
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You don't even need to do that.

First off, to close an img tag, just put this at the end: />

So <img src="some image" width="width" height="height" alt="alt" />

In your particular case, what you want to do is this:

Code:
#rounded_corners_top {
     margin: 0;
     padding:  0;
     background:  URL(rounded_corners_top.gif) top left no-repeat; /* this will make sure the background doesn't tile and sits in the top left */
     width:  806px;
     height:  61px;
     overflow:  hidden;
}
That will create an 806 x 61 div with nothing but the background in it, which is all you want. There's no need to include an image with no alt attribute in HTML code, since it's just decoration.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 04-25-2007, 09:36 AM Re: Rounded corners - eliminating space
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
I have tried both methods (the page currently reflects the use of the style sheet or ADAM's method) and neither is eliminating the gap. Any more thoughts? Any help would be greatly appreciated!!


ETA - I got it! It was the frame attribute! Thanks so much for all of your help - I really appreciate it!
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor

Last edited by lynnema; 04-25-2007 at 09:39 AM..
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Reply     « Reply to Rounded corners - eliminating space
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13423 seconds with 12 queries