Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: some help with HTML code

26 Oct 2010   #11
LiquidSnak

W7 Professional x64
 
 

Join Date: Oct 2010
W7 Professional x64
761 posts

^^that


My System SpecsSystem Spec
.
26 Oct 2010   #12
theski232

Windows 7 Home Premium 64 Bit
 
 

Quote   Quote: Originally Posted by LiquidSnak View Post
Join Date: Oct 2010
W7 Professional x64
761 posts

^^that
yea id say thats alot
My System SpecsSystem Spec
27 Oct 2010   #13
theski232

Windows 7 Home Premium 64 Bit
 
 

another question
I have a four column table and I want one cell to occupy the entire row not just the first column (backround is blue so that the cell is visible)
HTML Code:
<html>
<body bgcolor="blue">
<TABLE BORDER="0" CELLPADDING="8" CELLSPACING="8" WIDTH="50%">
<TR>
<TD><TABLE BORDER=2 WIDTH="100%"><caption>2007-2008 Season</caption> 
<TR><TD>Game Date</TD><TD>Kickoff</TD><td>Opponent</td><td>Score</td></TR> 
<TR><TD><b>Preseason</b></TD></TR>
<TR><TD>Fri 8/10/2007</TD><TD>7:30 P.M.</TD><TD>@ Buccaneers</TD><TD>13-10 L</TD></TR>
</TABLE></TD>
</body>
</html>
My System SpecsSystem Spec
.

27 Oct 2010   #14
LiquidSnak

W7 Professional x64
 
 

I will give a few more things a try, but so far, no dice.
My System SpecsSystem Spec
27 Oct 2010   #15
theski232

Windows 7 Home Premium 64 Bit
 
 

ive been trying, and i havent been able to figure it out either
My System SpecsSystem Spec
27 Oct 2010   #16
xarden

Windows 7 Enterprise
 
 

Firstly, you've got some mad syntax and non-compliance going on there.
Second, a <TD colspan="4"> will make that cell span 4 col(umn)s.
Similarly, a <TD rowspan="2"> will make that row span 2 rows.

Code:
<html>
<body>
<TABLE BORDER="1" CELLPADDING="8" CELLSPACING="8" WIDTH="50%">
 <TR>
      <TH colspan="4">2007-2008 Season</TH>
 </TR>
 <TR>
    <TD>Game Date</TD>
    <TD>Kickoff</TD>
    <TD>Opponent</TD>
    <TD>Score</TD>
 </TR>
 <TR>
    <TH colspan="4">Preseason</TH>
 </TR>
 <TR>
    <TD>Fri 8/10/2007</TD>
    <TD>7:30 P.M.</TD>
    <TD>@ Buccaneers</TD>
    <TD>13-10 L</TD>
 </TR>
</TABLE>
 
</body>
</html>
What I've done there is nested the <TD>'s for easier readability.
Also note, <TD> and <TH> are essentially the same. <TH> (Table Header) bolds and centers the text inside. You could change these back to <TD>'s then apply your own formatting, if you want.
My System SpecsSystem Spec
27 Oct 2010   #17
LiquidSnak

W7 Professional x64
 
 

That's the one. Nice job
My System SpecsSystem Spec
27 Oct 2010   #18
theski232

Windows 7 Home Premium 64 Bit
 
 

Quote   Quote: Originally Posted by xarden View Post
Firstly, you've got some mad syntax and non-compliance going on there.
Second, a <TD colspan="4"> will make that cell span 4 col(umn)s.
Similarly, a <TD rowspan="2"> will make that row span 2 rows.

Code:
<html>
<body>
<TABLE BORDER="1" CELLPADDING="8" CELLSPACING="8" WIDTH="50%">
 <TR>
      <TH colspan="4">2007-2008 Season</TH>
 </TR>
 <TR>
    <TD>Game Date</TD>
    <TD>Kickoff</TD>
    <TD>Opponent</TD>
    <TD>Score</TD>
 </TR>
 <TR>
    <TH colspan="4">Preseason</TH>
 </TR>
 <TR>
    <TD>Fri 8/10/2007</TD>
    <TD>7:30 P.M.</TD>
    <TD>@ Buccaneers</TD>
    <TD>13-10 L</TD>
 </TR>
</TABLE>
 
</body>
</html>
What I've done there is nested the <TD>'s for easier readability.
Also note, <TD> and <TH> are essentially the same. <TH> (Table Header) bolds and centers the text inside. You could change these back to <TD>'s then apply your own formatting, if you want.
the syntax and non-compliance dont bother me b/c its not going up on the internet and its for a 101 class so it not a big deal
and thanks for the help it looks much better now
My System SpecsSystem Spec
27 Oct 2010   #19
xarden

Windows 7 Enterprise
 
 

I was mostly refering to the two opening Table tags, and one closing table tag...
and the caption that wasnt in any TD.

Not a problem anyway, as long as you're learning something
My System SpecsSystem Spec
27 Oct 2010   #20
theski232

Windows 7 Home Premium 64 Bit
 
 

Quote   Quote: Originally Posted by xarden View Post
I was mostly refering to the two opening Table tags, and one closing table tag...
and the caption that wasnt in any TD.

Not a problem anyway, as long as you're learning something
the two table tags are required because of the way i want it to show up
also this is only an excerpt of the whole code because i did not want to copy and paste the whole thing
you will see what i am talking about when i post the final product here
My System SpecsSystem Spec
Reply

 some help with HTML code




Thread Tools




Similar help and support threads
Thread Forum
Anyone know anything about HTML and CSS.
Hey everyone, I'm having a bit of trouble with a webpage that I'm working on. When viewed in either Chrome or Firefox it loads correctly but when viewed in IE it adds a thin white line at the bottom of the page and therefore adds a scroll bar. I'm fairly new to all this and so far have just been...
Chillout Room
Can't connect via HTML
I have a Toshiba Satellite C875D-S7225 laptop. I try to connect the laptop to my tv via HTML but nothing shows up. I have tried different tvs and the same thing happens. I had to change the hard drive out and I believe I downloaded all the required drivers. What do I need to do to get my laptop to...
Drivers
An HTML & CSS question
Hello guys, I am looking to make my website a modern looking one. I would like to put the table of contents on the top of my website, like that guy did on his one - Home Page The point is, when someone click on someone's profile, the webpage must open in the same window, not in a different...
Chillout Room
HTML in notepad
my professor wants us to create a web page, in said web page he said, "Make sure that each ingredient is displayed on its own line and indented as shown. Hint: Treat them as a block quote for the indenting." The attachment shows what I did with it, but I was wondering if there is a way to get rid...
Browsers & Mail
html 5
hi all just want to know how you could see if your browser uses html 5 ?? thanks saakeman
Browsers & Mail


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:30.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App