Results 1 to 3 of 3

Thread: can anyone simplify this

  1. #1
    Join Date
    Oct 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default can anyone simplify this

    can someone simplify this please oh and by the way spacer is just a image of a colour so that i can have it on their
    this is the head for the head section
    HTML Code:
    <style>
    A.table 
    {
    	font-family:arial,geneva;
    	font-size:10px;
    	color:#505050
    }
    .title 
    { 
    	font-family:Tahoma, Arial, sans-serif; 
    	font-size: 10px; 
    	color:#313031; 
    	text-decoration:none; 
    	font-weight:bold;
    	text-transform:uppercase
    }
    </style>
    and this is the body section
    HTML Code:
    <TABLE WIDTH="200" CELLPADDING=0 CELLSPACING=0 BORDER=0>	
    	<TR>
    		<TD WIDTH=1 BGCOLOR="#aaaaaa" COLSPAN=3><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD>
    	</TR>
    	<TR>
    		<TD WIDTH=1 BGCOLOR="#aaaaaa" ROWSPAN=3><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD>
    		<TD HEIGHT=18 BGCOLOR="#aaaaaa"><SPAN CLASS="title">&nbsp;<a href="link.htm" class=table>name of link</a></SPAN></TD>
    		<TD WIDTH=1 BGCOLOR="#aaaaaa" ROWSPAN=3><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD>
    	</TR>
    	<TR>
    		<TD BGCOLOR="#aaaaaa"><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD>
    	</TR>
    	<TR>
    		<TD HEIGHT=60>
    		<TABLE width=100% CELLPADDING=4 CELLSPACING=0 BORDER=0>	
    			<TR>
    				<TD bgcolor=#838DA7>
    <a href="Awebpage.htm"><img src="Apicture.gif" border=0></a><br>
    <font color="#ffffff" size="2" face="Arial, Helvetica, sans-serif">
    some wrighting
    <TD/>	
    			
    </TR>
    		</TABLE>
    		</TD>
    	</TR>
    	<TR>
    		<TD WIDTH=1 BGCOLOR="#aaaaaa" COLSPAN=3><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD>
    	</TR>
    </TABLE>
    Last edited by bonesten; 10-16-2006 at 03:36 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Please be more specific- simply what and how? What are you trying to accomplish? Also, please post in the correct forum- this is probably best suited in the HTML forum. Moving thread.

  3. #3
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i assume you're trying to simplifies the CSS portion of the code? if so:

    anything that starts with font for example can be reduced to one line (IE: font:Tahoma, Arial, sans-serif, 10px, bold; )

    and for the html code, i have very little if not any CSS code in the html file on my webpage, purley text, tables and images, with a nice little line at the top:
    HTML Code:
    <link rel="stylesheet" type="text/css" href="../styles/style01.css"/>
    without you being more specific i can't give you anything else

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •