HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
graphics for tables
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
DCCS - The Apprentice



Joined: 12 Jul 2004
Posts: 68
Location: DC

PostPosted: Tue Jul 13, 2004 6:30 am     graphics for tables Reply with quote

hey fellas, I've posted once before, but still very new to the forumns. anyways, I wanna use graphics (as in mainly pictures) for my site. making sections and navigation areas bordered off like tables, yet using gfx to do it. this site is the site that I've been told to base my project site off of. the sections such as 'site highlights' and 'Online Services' are the parts i'm talking about. that gfx border. I know it's possible to make your own. yet, I am VERY unknowladgable with that stuff. I'm really stuck w/o it. any help would be MUCH appreciated. especially from the nova skoe kid Wink you're the man mjpliv. but so will anybody else that helps out.


much appreciated,
' thrifty -
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Tue Jul 13, 2004 7:58 am     Reply with quote

These graphics are easily made using Microsoft Paint. If you read the source code for the page you referenced and match the code to the results you will notice it is just a bunch of nested tables. They use left hand and right hand curves at the top of the table data and use a matching background color with the data entered as a contrasting color. The graphics for the sides of the tables are just colored vertical lines.

Here is a similar effect on a simpler page I did for some friends of mine (a work in progress).

http://www.buildersmatrix.com/nugget

Have a look at the source code and help yourself to the little graphics used. Open them up in you Paint program. Its actually pretty simple to do. Try assembling a few simple tables using this type of graphic and let us know how you make out.

And I can only wish I was still a kid! Older than dirt I am afraid!
DCCS - The Apprentice



Joined: 12 Jul 2004
Posts: 68
Location: DC

PostPosted: Tue Jul 13, 2004 9:42 am     Reply with quote

w00p! thanks a whole lot fella. I def apprec. just another reason to respect our elders, eh? anyways, I'm gonna work on getting text over the table. the example page you gave was correct and all, but as far as using the table gfx that I made, I would suspect there would be problems using it as a background img in a <td> tag.I'll give it a shot though. I can't paste the gfx that I made, but it is basicly like the one on the example page I gave you. anyways, looking at their code I can tell I'm gonna be in for a lot of work. :/ oh well, thanks for the help! I'll be posting again probably...
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Tue Jul 13, 2004 10:29 am     Reply with quote

You could save yourself a bit of work and use the graphics from the site you are looking at. Change the color or reshape to make them your own. Just use them as a template -

http://miamidade.gov/wps/skins/html/MiamiDade_Blue/header_blue_right.gif

http://miamidade.gov/wps/skins/html/MiamiDade_Blue/header_blue_left.gif

http://miamidade.gov/wps/skins/html/MiamiDade_Blue/left_corner_blue.gif

http://miamidade.gov/wps/skins/html/MiamiDade_Blue/right_corner_blue.gif

http://miamidade.gov/wps/skins/html/MiamiDade_Blue/bg_blue_white.gif

Have a look at this code from the page. You can see how they use a nested table as table data using these five GIFS (two top and three bottom) to make the top and bottom table rows. The center of the top row is just a table data cell with a matching color background and text.

Code:
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td bgcolor="#eeeeeb" background='/wps/skins/html/MiamiDade_Blue/header_blue_left.gif' width="11px" nowrap align="left" valign="middle" height="25px"><img src='/wps/themes/html/MiamiDade/space.gif' width="1" height="1" border="0" alt="spacer" valign="top"></td>
        <td bgcolor="#007AC3" width="100%" nowrap align="left" valign="middle">
         <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td width="100%" class="portletheader" nowrap align="left" valign="middle">Online Services
</td>
               <td nowrap align="right" valign="middle"> &nbsp;</td>
            </tr>
         </table>
        </td>
        <td bgcolor="#eeeeeb" background='/wps/skins/html/MiamiDade_Blue/header_blue_right.gif' width="11px" nowrap align="left" valign="middle" height="25px"><img src='/wps/themes/html/MiamiDade/space.gif' width="1" height="1" border="0" alt="spacer" valign="top"></td>
    </tr>

   
    <tr>
        <td colspan="3">
        <table width="100%" cellspacing="0" cellpadding="0" align="left">
            <tr>
                <td bgcolor="#007AC3"><img src='/wps/themes/html/MiamiDade/space.gif' width="2" height="1" border="0" alt="spacer"></td>
                <td bgcolor="#ffffff"><img src='/wps/themes/html/MiamiDade/space.gif' width="8" height="1" border="0" alt="spacer"></td>
                <td bgcolor="#ffffff" width="100%">


<div class="portletintro">
   <table width="100%" bgcolor="#FFFFFF">
      
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://www.miamidade.gov/proptax/" target="_blank">Look up Property Taxes</a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="http://gisims2.co.miami-dade.fl.us/MyBusiness" target="_blank">My Business</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://gisims2.co.miami-dade.fl.us/myhome/propmap.asp" target="_blank">My Home</a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="http://gisims2.co.miami-dade.fl.us/MyNeighborhood/home.asp" target="_blank">My Neighborhood</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://www.miamidade.gov/jobs/pgeJobWelc.asp" target="_blank">Search for County Jobs</a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="http://www.miamidade.gov/pa/Property_Search/ASP/record.asp" target="_blank">Search Property Records</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://www.miamidade.gov/dpm/solicitations-online.asp" target="_blank">Solicitations Online</a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="http://www.miamidade.gov/eproc/internet_enrollment/enroll.asp" target="_blank">Vendor Enrollment</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://www.miamidade.gov/bldg/online_epermitting.asp" target="_blank">e-Permitting</a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="http://www.paymywasdbill.com" target="_blank">Pay Water Bill</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://gisims2.miamidade.gov/MDGIS/home.htm" target="_blank">e-Maps Online</a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="http://www.co.miami-dade.fl.us/dswm/bins.asp" target="_blank">Order Recycling Bins</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://ipas.miamidade.gov/CLRA/CLRDisclaimer.jsp " target="_blank">Contractor License Renewal </a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="http://www.miami-airport.com/webfids/html/default.html" target="_blank">Get Flight Arrivals/Departures</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://www.miami-dadeclerk.com/payparking/default.asp" target="_blank">Pay Parking Ticket</a>&nbsp;</td></tr>
         
          <tr>
               <td class="more">
                  <a href="/wps/portal/.cmd/ad/.ar/937778519/.c/301/.ce/1006/.p/906?PC_906_getMax=max#1006" class="globalsearchlink">More&raquo;</a>
               </td>
          </tr>
      
   </table>
</div></td>
                <td bgcolor="#FFFFFF"><img src='/wps/themes/html/MiamiDade/space.gif' width="8" height="1" border="0" alt="spacer"></td>
                <td bgcolor="#007AC3"><img src='/wps/themes/html/MiamiDade/space.gif' width="2" height="1" border="0" alt="spacer"></td>
            </tr>
        </table>
        </td>
    </tr>
   
    <tr>
        <td colspan="3">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td bgcolor="#007AC3"><img src='/wps/skins/html/MiamiDade_Blue/left_corner_blue.gif' width="10" height="11" border="0" alt="left corner blue image"></td>
               <td width="100%" background='/wps/skins/html/MiamiDade_Blue/bg_blue_white.gif'><img src='/wps/themes/html/MiamiDade/space.gif' width="1" height="1" border="0" alt="spacer"></td>
               <td bgcolor="#007AC3"><img src='/wps/skins/html/MiamiDade_Blue/right_corner_blue.gif' width="10" height="11" border="0" alt="right color blue image"></td>
            </tr>
         </table>
        </td>
DCCS - The Apprentice



Joined: 12 Jul 2004
Posts: 68
Location: DC

PostPosted: Tue Jul 13, 2004 11:00 am     Reply with quote

awesome deal. I was doin that, and lookin at the exact samething, the same time you sent it. everythings workin out fine. when I get a template worked out for the site I'll let yu take a look at what yu helped me out with.!Very Happy quick question though, can you explain the 'nowrap' that's in part of the code, as well as 'class'. just more specificly what it's purpose is. I may have a clue, but I wanna just fully understand every bit of this code so I can really grasp it and use it, instead the traditional "c + p = n00b imager" deal. thanks a lot man, again I appreciate it. Smile
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Tue Jul 13, 2004 12:19 pm     Reply with quote

You will notice in the head section of the HTML that they reference style sheets saved elsewhere on the server. Within these files you would fine all the classes and style defined - or would if you had access to them.

References to "class" allows the code writer to define the way an object should appear in one location and use it over and over again. Kind of like a virtual rubber stamp. Rather than typing out all of the criteria for a text string to get the right size, color, font, justification and weight every time you use the font tag you would just do it once and define it as a "class". Thats the simplified version anyway. For more information have a look at -

http://www.htmlcodetutorial.com/character_famsupp_200.html
DCCS - The Apprentice



Joined: 12 Jul 2004
Posts: 68
Location: DC

PostPosted: Tue Jul 13, 2004 7:19 pm     Reply with quote

alright, cool deal. I see what you mean. seems like it'd save a BUNCH of time esp with nested tables. I'll need a lot of practice and help on that I do believe. I'm having troubles with some spacing issues.
DCCS - The Apprentice



Joined: 12 Jul 2004
Posts: 68
Location: DC

PostPosted: Wed Jul 14, 2004 10:29 am     Reply with quote

alright, so, I got the table worked out, but there's a prob with the verticle border. you may have explained how it is there. but, alas, I have no idea.
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Wed Jul 14, 2004 12:25 pm     Reply with quote

The following code start about 20 lines down from the top of the code shown in the previous post -

Code:
   <tr>
        <td colspan="3">
        <table width="100%" cellspacing="0" cellpadding="0" align="left">
            <tr>
                <td bgcolor="#007AC3"><img src='/wps/themes/html/MiamiDade/space.gif' width="2" height="1" border="0" alt="spacer"></td>
                <td bgcolor="#ffffff"><img src='/wps/themes/html/MiamiDade/space.gif' width="8" height="1" border="0" alt="spacer"></td>
                <td bgcolor="#ffffff" width="100%">



Then there is the contents of that section followed by this code -


Code:
<td bgcolor="#FFFFFF"><img src='/wps/themes/html/MiamiDade/space.gif' width="8" height="1" border="0" alt="spacer"></td>
                <td bgcolor="#007AC3"><img src='/wps/themes/html/MiamiDade/space.gif' width="2" height="1" border="0" alt="spacer"></td>
            </tr>
        </table>
        </td>
    </tr>


The first one sets up three narrow table data cells. the first on of these has a background color that matches the shaped GIFS. The contents of the 4th (center) cell are enclosed in another nested table. Then the last bt of code here sets up two more table data cells with second one having a background color to match the GIFS. As the table in the center cell expands to accommodate the data entered, all the other cells in the row expand along with it. That stretches the colored cell so it looks like a colored verticle line (its only 2 pixels wide).

So no matter how much you alter the contents of the table containing the links in this example, it will always appear to be wrapped in the blue box with the radiused corners. Even the GIF in the bottom/center is just a blue dot 1 pixel wide that is stretched to 100% of the available table cell so that it appears as a blue line.

Neat trick huh?
DCCS - The Apprentice



Joined: 12 Jul 2004
Posts: 68
Location: DC

PostPosted: Wed Jul 14, 2004 12:49 pm     Reply with quote

awesome! good deal. ok, I was thinking that. but, bad news is, that means the reason why what I was trying wasn't working is because of my style settings in my <head>. they are mischeiviously as follows:

Code:
<style>font, td, .text {color:white;}, A {text-decoration:none}, .lightbluetext8 {color:white;}, .btext {color:white;}, .orangetext15 {color:#99CCcc;}, .blacktext12 {color:white;}, .blacktext10 {color:#CCCCCC;}, .redbtext {color:#99ccff;}, .whitetext12 {color:#996666;}, a:hover{color:#999999;}, a:link{color:#CCCCCC;}, a:visited{color:#CCCCCC;}, a.redlink:link{color:#99CCCC;}, a.redlink:visited{color:#666600;}, a.redlink:active{color:#999999;}, a.redlink:hover{color:#CCCCCC;}, a:active {color:#999999;}, a, .nametext {color:#CCCCCC;}  body, input, textarea{font-family:Arial, Arial, Arial;font-size:8pt;color:white}input, textarea{border:transparent; font-size:8pt;overflow:hidden;background:url("");}</style>


I don't mind it overwriting the link fonts and such, but it does as well overwrite the background and all. which, would make that trick not be able to work. so, I'm gonna have to find a way to make it so...
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Wed Jul 14, 2004 1:14 pm     Reply with quote

Create different styles for different parts of the website.
DCCS - The Apprentice



Joined: 12 Jul 2004
Posts: 68
Location: DC

PostPosted: Thu Jul 15, 2004 5:18 am     Reply with quote

hmm, well. I duno. looking at the givin code it only looks like it's changing links and fonts. That doesn't seem to be my problem. it seems to be overwriting the background somehow or something. Behind "Online Services" and the apperant absence of any verticle column on the table is obviously showing this. I dunno, well, I guess I'll give you some code as to what I've got. right now I've headached out, and so it's hard to focus on and see where I'm causing the conflict.

Code:
<table width="10%" height="20%" border="0" cellpadding="0" cellspacing="0"
align="right" style="font, td, .text {color:white;}, A {text-decoration:none}, .lightbluetext8 {color:white;}, .btext {color:white;}, .orangetext15 {color:#99CCcc;}, .blacktext12 {color:white;}, .blacktext10 {color:#CCCCCC;}, .redbtext {color:#99ccff;}, .whitetext12 {color:#996666;}, a:hover{color:#999999;}, a:link{color:#CCCCCC;}, a:visited{color:#CCCCCC;}, a.redlink:link{color:#99CCCC;}, a.redlink:visited{color:#666600;}, a.redlink:active{color:#999999;}, a.redlink:hover{color:#CCCCCC;}, a:active {color:#999999;}, a, .nametext {color:#CCCCCC;}  body, input, textarea{font-family:Arial, Arial, Arial;font-size:8pt;color:white}input, textarea{border:; font-size:8pt;overflow:hidden;background:url("");}"> 

<td bgcolor="#ffffff" background=".../.../header_left.gif' width="11px" nowrap align="left" valign="middle" height="25px"><img src='.../.../space.gif' width="1" height="1" border="0" alt="spacer" valign="top"></td>
        <td bgcolor="#ffffff" width="100%" nowrap align="right" valign="middle">
         <table width="20%" border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td width="20%" class="" nowrap align="center" valign="middle">Online Services</td>
               <td nowrap align="right" valign="middle"></td>
            </tr>
         </table>
</td>
        <td bgcolor="#ffffff" background='.../.../header_right.gif' width="11px" nowrap align="right" valign="middle" height="25px"><img src='.../.../space.gif' width="1" height="1" border="0" alt="spacer" valign="top"></td>

   
    <tr>
        <td colspan="3">
        <table width="20%" cellspacing="0" cellpadding="0" align="right">
            <tr>
                <td bgcolor="#ffffff"><img src='.../.../space.gif' width="2" height="1" border="0" alt="spacer"></td>
                <td bgcolor="#ffffff"><img src='.../.../space.gif' width="8" height="1" border="0" alt="spacer"></td>
                <td bgcolor="#ffffff" width="100%">
<div class="portletintro">
   <table width="100%" bgcolor="#FFFFFF" style=(font-size:8pt;)>
            <hr noshade width="10%" size="2">
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://www.miamidade.gov/jobs/pgeJobWelc.asp" target="_blank">Search for County Jobs</a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="http://gisims2.miamidade.gov/MDGIS/home.htm" target="_blank">e-Maps Online</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://www.miami-dadeclerk.com/cef/default.asp" target="_blank">Code Violation Search</a>&nbsp;</td></tr>
         <tr><td colspan="2" class="onlineservices2" height="18"><a href="https://www2.myflorida.com/apps/uc/fluid/" target="_blank">File Unemployment Claims</a>&nbsp;</td></tr>
         
         <tr><td colspan="2" class="onlineservices1" height="18"><a href="http://www.savingsbonds.gov/" target="_blank">Purchase US Savings Bonds</a>&nbsp;</td></tr>
         
   </table>

For security reasons I've replaced the pathname to space.gif and left_header.gif pics. I've tried to make a lot of things white, seeing as how my background is dark green, I would figure it would show easily. and I've had no luck yet.
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Thu Jul 15, 2004 6:18 am     Reply with quote

Have you got a test site up and running yet that I can look at?
DCCS - The Apprentice



Joined: 12 Jul 2004
Posts: 68
Location: DC

PostPosted: Thu Jul 15, 2004 6:43 am     Reply with quote

I'm gonna try and see if they'll let me publish it on the server. as for now though, no. mm, I can send you a screenshot image. that's pretty limited, but, as for the few content and such that I have, it may be helpful.
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Thu Jul 15, 2004 6:49 am     Reply with quote

Whatever you have would be helpfull. I will look at it after lunch
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial