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

Posts: 127
Name: Jess Weiss
Location: Massachusetts
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!
 
When You Register, These Ads Go Away!
Old 04-24-2007, 03:33 PM Re: Rounded corners - eliminating space
angele803's Avatar
Perfectly Imperfect

Posts: 1,609
Name: Stephanie
Location: Oklahoma
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,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
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.
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: 127
Name: Jess Weiss
Location: Massachusetts
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

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.12001 seconds with 12 queries