I'm trying to use an image to make a corner on a table. i don't know why, but I'm having some trouble. Here is a link to the page, (the code is probably too long to post): <br />
<br />
<!-- m --><a class="postlink" href="http://www.geocities.com/manhattanseniors/17thdegree/test1.html">http://www.geocities.com/manhattansenio ... test1.html</a><!-- m --><br />
<br />
any help is greatly appreciated.<!--content-->I don't think that can be done with HTML, but you could use CSS and position it OVER the table's corner.<!--content-->Hmm, I just looked at it in Mozilla and it looks fine. I'm refering to the first table, where it says hello hello hello. where it says "A title" to the right of that is a slanted image. It looks fine in mozilla, but messed up in IE6. This is going to be done with CSS and HTML, that's already understood. What i have already is done like that.<br />
<br />
Ignore the tables below the first one.<!--content-->It works fine in Netscape 7.0!<!--content-->when i view it in IE6 i get a small gap between the title td and the image td next to it. I can't think of why it's there.<!--content-->Just tried it in IE 6.0. I think that your positioning is too much to the right, or it could be that IE bug where things are off by 3px. It looks like a three pixel gap to me.<!--content-->I suggest that instead of using tables, make a div and put that image inside the div on the right. Then make borders for ONLY the left, top, and bottom, but this still might not fix your problem completely.<!--content-->Any one else have any help? I tried doing it with div's and spans but got the same result, see the bottom of the linked page.<!--content-->You set the table to 100%, remove the attribute width on your tables and it should works.<!--content-->didn't work.<!--content-->Ok, remove the align=left of the 'corner' images!<!--content-->Ah, you're my hero man. It works in IE6, the only browser I have. Anyone else have other browsers they can check it in. I'd really appreciate it.<!--content-->In IE4,5,6,NS4, tables looks good (only the menu is different in NS4, but that's not a problem (less than 10% of NS users))<br />
<br />
By the way, merry christmas!!!!!***<!--content-->If you want to get rid of the tables you can do something like this<br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta http-equiv="Content-Script-Type" content="text/javascript"><br />
<meta http-equiv="Content-Style-Type" content="text/css"><br />
<title></title><br />
<style type="text/css"><br />
body {background:#ccc;}<br />
<br />
.tab {text-align:right}<br />
.tab span {float:left; width:100px; text-align:left; padding-left:10px; color:white; backgroundurple url(corner4.gif) 100% no-repeat;}<br />
<br />
</style><br />
</head><br />
<body><br />
<br />
<div class="tab"><span>A Title</span> <a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Brizzett</a> | 12-12-12 3:45 AM</div><br />
<div>hello<br>hello<br>hello</div><br />
<br />
<div class="tab"><span>A Title</span> <a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Brizzett</a> | 12-12-12 3:45 AM</div><br />
<div>hello<br>hello<br>hello</div><br />
<br />
<div class="tab"><span>A Title</span> <a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Brizzett</a> | 12-12-12 3:45 AM</div><br />
<div>hello<br>hello<br>hello</div><br />
<br />
<br />
</body><br />
</html><!--content-->The only problem stefan is that the corner picture isn't in there. <br />
<br />
I've come across another question though. On the very bottom of the page, I would like the bottom TD to touch the bottom of the screen. I don't want the purple on the bottom. This seems fairly simple to do it, but I just can't think of it.<!--content-->Originally posted by thejoker101 <br />
The only problem stefan is that the corner picture isn't in there. <br />
<br />
Yes it is, but you of cource have to provide the correct URL for it in this section of the CSS<br />
<br />
backgroundurple url(corner4.gif) 100% no-repeat;<!--content-->whoops, didn't see that, let me check it out...<br />
<br />
Thoughts on the bottom TD not touching the bottom of the screen?<!--content-->Ok, it works, with one exception. The way I have it set up, the span it's in uses a border for the left and top, when I use your example it adds the border line over the image because it is in the span. <br />
<br />
Any way around that? Would it be possible to nest two spans, or something like that.<br />
<br />
I appreciate your help.<!--content-->Originally posted by thejoker101 <br />
Ok, it works, with one exception. The way I have it set up, the span it's in uses a border for the left and top, when I use your example it adds the border line over the image because it is in the span. <br />
<br />
Any way around that? Would it be possible to nest two spans, or something like that.<br />
<br />
<br />
Yes, you could use 2 spans if you like, with the second only containg the backgrund.<br />
Alternativly you could put the image back into the page and float it left too, but that is more tedious if you decide to modify the layout in the future as you then have to change it on every page.<br />
<br />
Perhaps this would be the best actually<br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta http-equiv="Content-Script-Type" content="text/javascript"><br />
<meta http-equiv="Content-Style-Type" content="text/css"><br />
<title></title><br />
<style type="text/css"><br />
body {background:#ccc;}<br />
<br />
.tab {text-align:right}<br />
.tab em {float:left; width:100px; text-align:left; padding-left:10px; color:white; backgroundurple;}<br />
.tab span {float:left; width:15px; background:url(corner4.gif) 0 no-repeat;}<br />
<br />
</style><br />
</head><br />
<body><br />
<br />
<div class="tab"><em>A Title</em><span> </span><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Brizzett</a> | 12-12-12 3:45 AM</div><br />
<div>hello<br>hello<br>hello</div><br />
<br />
</body><br />
</html><!--content-->Unless I'm missing it, that didn't show the image. <br />
<br />
Your example is located here, it's on the very bottom of the page, <!-- m --><a class="postlink" href="http://www.geocities.com/manhattanseniors/17thdegree/test2.html">http://www.geocities.com/manhattansenio ... test2.html</a><!-- m --><!--content-->Originally posted by thejoker101 <br />
Unless I'm missing it, that didn't show the image. <br />
<br />
<br />
Sorry, my mistake<br />
<br />
<span> </span><br />
should read<br />
<span> </span><!--content-->Adding the non-breaking space did add the picture. however, it added it about 2 pixels lower than it needs to be. I thought it might be because some of the text is larger than I wanted it to be, so I added some font changing CSS. Also, instead of useing the <EM> tag, I used another <span> flag, but I also added Class names to them, and in my style sheet I referenced them by: .tab span.SpanClassName This seemed to work.<br />
<br />
Another problem that seemed to happen was that the first line of the text below became centered, not sure on that. Again, you can view the test page at:<br />
<br />
<!-- m --><a class="postlink" href="http://www.geocities.com/manhattanseniors/17thdegree/test2.html">http://www.geocities.com/manhattansenio ... test2.html</a><!-- m --><br />
<br />
The referenced style sheet is located here:<br />
<!-- m --><a class="postlink" href="http://www.geocities.com/manhattanseniors/17thdegree/style2.css">http://www.geocities.com/manhattansenio ... style2.css</a><!-- m --><br />
<br />
Again, thank you for your time.<!--content-->Originally posted by thejoker101 <br />
Adding the non-breaking space did add the picture. however, it added it about 2 pixels lower than it needs to be.<br />
<br />
<br />
You controll the hor & vert position of the background with the values you give in % or px<br />
<br />
eg <br />
background:url(corner4.gif) 2px 3px no-repeat;<br />
<br />
<br />
Also, instead of useing the <EM> tag, I used another <span> flag, but I also added Class names to them, and in my style sheet I referenced them by: .tab span.SpanClassName This seemed to work.<br />
<br />
<br />
Yepp it works fine that way too. I just used <em> since it made scence both structurally in the markup but also alowed for a much shorter code.<br />
If both are spans you will have to add the class="whatever" to each and every span on the page which bloats the code unnessecarily in this case.<br />
<br />
<br />
Another problem that seemed to happen was that the first line of the text below became centered, not sure on that. <br />
<br />
That looks like a small IE bug.<br />
Should be easy enough to work around. I presume simply specifying the height of the tab div should fix that<!--content-->
<br />
<!-- m --><a class="postlink" href="http://www.geocities.com/manhattanseniors/17thdegree/test1.html">http://www.geocities.com/manhattansenio ... test1.html</a><!-- m --><br />
<br />
any help is greatly appreciated.<!--content-->I don't think that can be done with HTML, but you could use CSS and position it OVER the table's corner.<!--content-->Hmm, I just looked at it in Mozilla and it looks fine. I'm refering to the first table, where it says hello hello hello. where it says "A title" to the right of that is a slanted image. It looks fine in mozilla, but messed up in IE6. This is going to be done with CSS and HTML, that's already understood. What i have already is done like that.<br />
<br />
Ignore the tables below the first one.<!--content-->It works fine in Netscape 7.0!<!--content-->when i view it in IE6 i get a small gap between the title td and the image td next to it. I can't think of why it's there.<!--content-->Just tried it in IE 6.0. I think that your positioning is too much to the right, or it could be that IE bug where things are off by 3px. It looks like a three pixel gap to me.<!--content-->I suggest that instead of using tables, make a div and put that image inside the div on the right. Then make borders for ONLY the left, top, and bottom, but this still might not fix your problem completely.<!--content-->Any one else have any help? I tried doing it with div's and spans but got the same result, see the bottom of the linked page.<!--content-->You set the table to 100%, remove the attribute width on your tables and it should works.<!--content-->didn't work.<!--content-->Ok, remove the align=left of the 'corner' images!<!--content-->Ah, you're my hero man. It works in IE6, the only browser I have. Anyone else have other browsers they can check it in. I'd really appreciate it.<!--content-->In IE4,5,6,NS4, tables looks good (only the menu is different in NS4, but that's not a problem (less than 10% of NS users))<br />
<br />
By the way, merry christmas!!!!!***<!--content-->If you want to get rid of the tables you can do something like this<br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta http-equiv="Content-Script-Type" content="text/javascript"><br />
<meta http-equiv="Content-Style-Type" content="text/css"><br />
<title></title><br />
<style type="text/css"><br />
body {background:#ccc;}<br />
<br />
.tab {text-align:right}<br />
.tab span {float:left; width:100px; text-align:left; padding-left:10px; color:white; backgroundurple url(corner4.gif) 100% no-repeat;}<br />
<br />
</style><br />
</head><br />
<body><br />
<br />
<div class="tab"><span>A Title</span> <a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Brizzett</a> | 12-12-12 3:45 AM</div><br />
<div>hello<br>hello<br>hello</div><br />
<br />
<div class="tab"><span>A Title</span> <a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Brizzett</a> | 12-12-12 3:45 AM</div><br />
<div>hello<br>hello<br>hello</div><br />
<br />
<div class="tab"><span>A Title</span> <a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Brizzett</a> | 12-12-12 3:45 AM</div><br />
<div>hello<br>hello<br>hello</div><br />
<br />
<br />
</body><br />
</html><!--content-->The only problem stefan is that the corner picture isn't in there. <br />
<br />
I've come across another question though. On the very bottom of the page, I would like the bottom TD to touch the bottom of the screen. I don't want the purple on the bottom. This seems fairly simple to do it, but I just can't think of it.<!--content-->Originally posted by thejoker101 <br />
The only problem stefan is that the corner picture isn't in there. <br />
<br />
Yes it is, but you of cource have to provide the correct URL for it in this section of the CSS<br />
<br />
backgroundurple url(corner4.gif) 100% no-repeat;<!--content-->whoops, didn't see that, let me check it out...<br />
<br />
Thoughts on the bottom TD not touching the bottom of the screen?<!--content-->Ok, it works, with one exception. The way I have it set up, the span it's in uses a border for the left and top, when I use your example it adds the border line over the image because it is in the span. <br />
<br />
Any way around that? Would it be possible to nest two spans, or something like that.<br />
<br />
I appreciate your help.<!--content-->Originally posted by thejoker101 <br />
Ok, it works, with one exception. The way I have it set up, the span it's in uses a border for the left and top, when I use your example it adds the border line over the image because it is in the span. <br />
<br />
Any way around that? Would it be possible to nest two spans, or something like that.<br />
<br />
<br />
Yes, you could use 2 spans if you like, with the second only containg the backgrund.<br />
Alternativly you could put the image back into the page and float it left too, but that is more tedious if you decide to modify the layout in the future as you then have to change it on every page.<br />
<br />
Perhaps this would be the best actually<br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta http-equiv="Content-Script-Type" content="text/javascript"><br />
<meta http-equiv="Content-Style-Type" content="text/css"><br />
<title></title><br />
<style type="text/css"><br />
body {background:#ccc;}<br />
<br />
.tab {text-align:right}<br />
.tab em {float:left; width:100px; text-align:left; padding-left:10px; color:white; backgroundurple;}<br />
.tab span {float:left; width:15px; background:url(corner4.gif) 0 no-repeat;}<br />
<br />
</style><br />
</head><br />
<body><br />
<br />
<div class="tab"><em>A Title</em><span> </span><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">Brizzett</a> | 12-12-12 3:45 AM</div><br />
<div>hello<br>hello<br>hello</div><br />
<br />
</body><br />
</html><!--content-->Unless I'm missing it, that didn't show the image. <br />
<br />
Your example is located here, it's on the very bottom of the page, <!-- m --><a class="postlink" href="http://www.geocities.com/manhattanseniors/17thdegree/test2.html">http://www.geocities.com/manhattansenio ... test2.html</a><!-- m --><!--content-->Originally posted by thejoker101 <br />
Unless I'm missing it, that didn't show the image. <br />
<br />
<br />
Sorry, my mistake<br />
<br />
<span> </span><br />
should read<br />
<span> </span><!--content-->Adding the non-breaking space did add the picture. however, it added it about 2 pixels lower than it needs to be. I thought it might be because some of the text is larger than I wanted it to be, so I added some font changing CSS. Also, instead of useing the <EM> tag, I used another <span> flag, but I also added Class names to them, and in my style sheet I referenced them by: .tab span.SpanClassName This seemed to work.<br />
<br />
Another problem that seemed to happen was that the first line of the text below became centered, not sure on that. Again, you can view the test page at:<br />
<br />
<!-- m --><a class="postlink" href="http://www.geocities.com/manhattanseniors/17thdegree/test2.html">http://www.geocities.com/manhattansenio ... test2.html</a><!-- m --><br />
<br />
The referenced style sheet is located here:<br />
<!-- m --><a class="postlink" href="http://www.geocities.com/manhattanseniors/17thdegree/style2.css">http://www.geocities.com/manhattansenio ... style2.css</a><!-- m --><br />
<br />
Again, thank you for your time.<!--content-->Originally posted by thejoker101 <br />
Adding the non-breaking space did add the picture. however, it added it about 2 pixels lower than it needs to be.<br />
<br />
<br />
You controll the hor & vert position of the background with the values you give in % or px<br />
<br />
eg <br />
background:url(corner4.gif) 2px 3px no-repeat;<br />
<br />
<br />
Also, instead of useing the <EM> tag, I used another <span> flag, but I also added Class names to them, and in my style sheet I referenced them by: .tab span.SpanClassName This seemed to work.<br />
<br />
<br />
Yepp it works fine that way too. I just used <em> since it made scence both structurally in the markup but also alowed for a much shorter code.<br />
If both are spans you will have to add the class="whatever" to each and every span on the page which bloats the code unnessecarily in this case.<br />
<br />
<br />
Another problem that seemed to happen was that the first line of the text below became centered, not sure on that. <br />
<br />
That looks like a small IE bug.<br />
Should be easy enough to work around. I presume simply specifying the height of the tab div should fix that<!--content-->