|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Adjusting alignment in a script
I'm looking at adjusting the alignment on a script to be vertical instead of horizontal. I'm dealing with a lot of scripting on one page and i'm not sure as to where i'm supposed to adjust it. I've experimented with a few "widths" and "heights" but it hasn't made any difference.
This is an example of what the alignment looks like now: aaaaa aaaaaa aaaaaa aaaaa aaaaaa aaaaaa this is what I want it to look like: aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa I've copied part of the code here that i think is relevant for changing. I'm not asking anyone to change it for me, more like tell me where it needs changing. thanks so much! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><!-- InstanceBegin template="/templates/template.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- InstanceBeginEditable name="doctitle" --> <title>FM 98.5 "The Pulse of the Valleys"</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- #Layer1 { position:absolute; width:379px; height:275px; z-index:3; left: 131px; top: 192px; } --> </style> <style type="text/css"> <!-- #Layer2 { position:absolute; width:102px; height:79px; z-index:4; left: 773px; top: 150px; } --> </style> <style type="text/css"> <!-- #Layer3 { position:absolute; width:108px; height:78px; z-index:5; left: 135px; top: 150px; } --> </style> <meta http-equiv="refresh" content="45"> <style type="text/css"> <!-- #Layer4 { position:absolute; width:373px; height:276px; z-index:6; left: 512px; top: 192px; } --> </style> <style type="text/css"> <!-- #Layer5 { position:absolute; width:280px; height:115px; z-index:7; left: 132px; top: 211px; border-color: #FFFFFF; border-width: thin; } --> </style> <style type="text/css"> <!-- #Layer6 { position:absolute; width:751px; height:27px; z-index:7; left: 130px; top: 489px; } --> </style> <style type="text/css"> <!-- .style1 {font-size: x-small} --> </style> <style type="text/css"> <!-- .style2 {font-family: "Times New Roman", Times, serif} --> </style> <style type="text/css"> <!-- .style3 {font-family: Arial, Helvetica, sans-serif} --> </style> <style type="text/css"> <!-- .style4 {font-family: "Trebuchet MS", Arial, Helvetica} --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- } body,td,th { font-family: Arial, Helvetica, sans-serif; color: #000000; } a:link { color: #000000; } a:visited { color: #000000; } a:hover { color: #000000; } a:active { color: #000000; } #body1 { overflow:auto; height:270px; #la1 { position:absolute; left:666px; top:15px; width:22px; height:129px; z-index:1; visibility: hidden; } #la2 { position:absolute; left:654px; top:5px; width:235px; height:143px; z-index:1; visibility: hidden; } .style00 {font-size: 10px} .styleside { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; } #la3 { position:absolute; width:610px; height:115px; z-index:2; left: 154px; top: 583px; } #la4 { position:absolute; width:200px; height:115px; z-index:2; } #copyright { position:absolute; width:575px; height:76px; z-index:2; left: 234px; top: 513px; } --> </style> <LINK REL="SHORTCUT ICON" HREF="http://www.fm985.com.au/images/favicon.ico"> <link href="http://www.fm985.com.au/style.css" rel="stylesheet" type="text/css"> </head> <body> <div id="la2"><a href="http://www.fm985.com.au/home.php"></a></div> <table width="87" style="top:0px;" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <?php $dbhost = 'mysql.netfirms.com:3306'; $dbuser = 'u70422394'; $dbpass = 'vicrad'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql'); $dbname = 'd60384351'; mysql_select_db($dbname); ?> </div> <div class="style1" id="Layer6"> <div align="center"> GVFL Rounds <a href="?round=<?php echo ($round-1) ?>"><< previous round</a> | <a href="?round=<?php echo ($iround) ?>"></a> | <a href="?round=1">1</a> | <a href="?round=2">2</a> | <a href="?round=3">3</a> | <a href="?round=4">4</a> | <a href="?round=5">5</a> | <a href="?round=6">6</a> | <a href="?round=7">7</a> | <a href="?round=8">8</a> | <a href="?round=9">9</a> | <a href="?round=10">10</a> | <a href="?round=11">11</a> | <a href="?round=12">12</a> | <a href="?round=13">13</a> | <a href="?round=14">14</a> | <a href="?round=15">15</a> | <a href="?round=16">16</a> | <a href="?round=17">17</a> | <a href="?round=18">18</a> | <a href="?round=<?php echo ($round+1) ?>">next round >></a><br> </div> <div id="Layer4"> <p align="center"><br> <?php if($round=="f1") {} elseif($round=="f2") {} elseif($round=="f3") {} elseif($round=="f4") {} elseif($round<1) {$round=1;} elseif($round>18) {$round=18;}; if($round!==$iround) {echo'<br>';}; $query = 'SELECT game_number, broadcast, home_team, away_team, location, day_time, home_goals, home_points, away_goals, away_points, home_total, away_total, minute_mark, quarter FROM `'.$round.'` WHERE game_number >= 4'; $result = mysql_query($query) or die('error, please refresh page'); while($row = mysql_fetch_assoc($result)) { $quarter=$row['quarter']; $minute_mark=$row['minute_mark']; if($quarter=="0") { $score=$row['home_team']." V ".$row['away_team']; $footer=$row['location']."<br>".$row['day_time']; } elseif($minute_mark=="0") { $score=$row['home_team']." (".$row['home_goals'].".".$row['home_points'].".".$row['home_total'].") V ".$row['away_team']." (".$row['away_goals'].".".$row['away_points'].".".$row['away_total'].")"; $footer=$row['quarter']."<br>".$row['location']; } else { $score=$row['home_team']." (".$row['home_goals'].".".$row['home_points'].".".$row['home_total'].") V ".$row['away_team']." (".$row['away_goals'].".".$row['away_points'].".".$row['away_total'].")"; $footer=$row['minute_mark']." minute mark of the ".$row['quarter']."<br>".$row['location']; }; if($row['broadcast']=='**' && $round==$iround) {$stats='<br><a href="stats.php">See the stats for this game</a>';} else{$stats=' ';}; echo( $row['broadcast']."<strong>".$score."</strong><br>".$footer.$stats."<br><br>"); } ?> </p> </div> <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="Body" --> <div align="center"> <div id="Layer3"> </div> <div id="layer"> </div> <div id="Layer1"> <p align="center"> <br><?php if($round!==$iround) {echo'<br>';}; $query = 'SELECT game_number, broadcast, home_team, away_team, location, day_time, home_goals, home_points, away_goals, away_points, home_total, away_total, minute_mark, quarter FROM `'.$round.'` WHERE game_number <= 3'; $result = mysql_query($query) or die('error, please refresh page'); while($row = mysql_fetch_assoc($result)) { $quarter=$row['quarter']; $minute_mark=$row['minute_mark']; if($quarter=="0") { $score=$row['home_team']." V ".$row['away_team']; $footer=$row['location']."<br>".$row['day_time']; } elseif($minute_mark=="0") { $score=$row['home_team']." (".$row['home_goals'].".".$row['home_points'].".".$row['home_total'].") V ".$row['away_team']." (".$row['away_goals'].".".$row['away_points'].".".$row['away_total'].")"; $footer=$row['quarter']."<br>".$row['location']; } else { $score=$row['home_team']." (".$row['home_goals'].".".$row['home_points'].".".$row['home_total'].") V ".$row['away_team']." (".$row['away_goals'].".".$row['away_points'].".".$row['away_total'].")"; $footer=$row['minute_mark']." minute mark of the ".$row['quarter']."<br>".$row['location']; }; if($row['broadcast']=='**' && $round==$iround) {$stats='<br><a href="stats.php?r='.$iround.'">See the stats for this game</a>';} else{$stats=' ';}; echo( $row['broadcast']."<strong>".$score."</strong><br>".$footer.$stats."<br><br>"); } ?> |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Adjusting alignment in a script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|