473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Unable to align text

4
Hi All
This may seem like a stupid question but I can't get my text to left align. It used to but it's now decided to centre and I can't see why.

I have include the css and the relevant table code. If one of you can spot the problem I would appreciate it.

The table "top info box" is within the table "main".

The page can be seen at it's temporary home here. http://mariehines.co.uk/NEW/home.php

Regards
Ray

CSS
body {
background: #FFFFFF ;
/*: url(bg.jpg) fixed; */
text-align: left;
color: #000000;
font: 11px verdana, sans-serif;
margin: 0px;
padding: 0px 0px 0px 0px;
}
.header {
width: 1200px;
height: 235px;
margin-left:auto; margin-right:auto;
background: url(images/header.jpg) no-repeat;
font: 9px verdana, sans-serif;
text-align: right;
color: #000000;
}
.main {
width: 1200px;
height: 1200px;
margin-left:auto;
margin-right:auto;
background: url(images/bg1200x1200_R.jpg) no-repeat;
font: 10px verdana, sans-serif;
text-align: left;
color: #000000;
}

.topinfobox {
width: 100%;
margin-left:auto; margin-right:auto;
font: 10px Verdana, Arial, Helvetica, sans-serif;
text-align: left;
color: #000000;

}

.sideinfobox {
width: 490px;
font: 10px "Verdana", Arial, Helvetica, sans-serif;
text-align: left;
color: #000000;
}
.liveinfobox {
width: 600px;
font: 10px "Verdana", Arial, Helvetica, sans-serif;
text-align: left;
color: #000000;
}

.bold {
font-weight: bold;
}
.eandrinfobox {
width: 99%;
font: 10px "Verdana", Arial, Helvetica, sans-serif;
text-align: left;
color: #000000;
}
.H1{
font: 200% "Verdana", Arial, Helvetica, sans-serif;
text-align: left;
/* color: #f97373 */
}
.blank {
width: 1200px;
height: 1200px;
margin-left:auto;
margin-right:auto;
/* background: url(bg1200x1200_R.jpg) no-repeat; */
/* border-left: solid 2px #000000; */
font: 10px verdana, sans-serif;
text-align: right;
color: #000000;
}
.rockschool {
width: 1200px;
height: 1200px;
margin-left:auto;
margin-right:auto;
background: url(images/bg1.jpg) no-repeat; */
/* border-left: solid 2px #000000; */
font: 10px verdana, sans-serif;
text-align: right;
color: #000000;
}
.media {
width: 1200px;
height: 1200px;
margin-left:auto;
margin-right:auto;
background: url(images/bg2.jpg) no-repeat; */
/* border-left: solid 2px #000000; */
font: 10px verdana, sans-serif;
text-align: right;
color: #000000;
}
.radiolisting {
width: 100%;
font: 10px verdana, sans-serif;
text-align: left;
color: #000000;
}
A.link {
font-family: tahoma;
font-weight: normal;
font-size: 10px;
text-decoration: none;
color: #D1CE89;
}
A.visited {
font-family: tahoma;
font-weight: normal;
font-size: 10px;
text-decoration: none;
color: #d1a78f;
}
A.menu2:hover {
font-family: tahoma;
font-weight: normal;
font-size: 10px;
color: #D9D49A;
font-style: normal;
text-decoration: none;
}

.main tr td .sideinfobox tr td p {
text-align: left;
}
TABLE CODE
Expand|Select|Wrap|Line Numbers
  1. <table class="main">
  2.   <tr>
  3.     <td height="214" colspan="2" valign="top"><table class="topinfobox">
  4.       <tr>
  5.         <td width="168" height="189" align="left">&nbsp;</td>
  6.         <td width="218" align="left" valign="top"><p><strong>Do you want to..</strong></p>
  7.           <p align="left">Learn to play an instrument?<br />
  8.               Form a Rock Band?<br />
  9.               Form a Pop Group?<br />
  10.               Be an MC/DJ?<br />
  11.               Record your own music?<br />
  12.               Be a Radio DJ or Producer?<br />
  13.               Set up a Record Label?<br />
  14.               Play live in your own venue?<br />
  15.               Be a music reporter or critic? </p>
  16.           <p><strong>Just  have FUN with music?</strong></p></td>
  17.         <td width="298" align="left" valign="top"><p><strong>We can..</strong></p>
  18.           <p>Teach you to play or sing.<br />
  19.               Provide mentors to help you.<br />
  20.               Provide our own Internet Radio Station.<br />
  21.               Provide our own recording studio.<br />
  22.               Provide our own live venue.<br />
  23.               Provide our own educational programmes.<br />
  24.               Provide what you need. <br />
  25.               If we don't have it we'll try and get it.<br />
  26.               <br />
  27.             </p>
  28.           <p><strong> Let you have FUN with music.</strong></p></td>
  29.         <td width="298" align="left" valign="top"><p><strong>Don't want to sing or play?</strong></p>
  30.           <p>How about becoming a volunteer?<br />
  31.               Can you mentor?<br />
  32.               Can you Fundraise?<br />
  33.               Can you talk companies into giving us stuff for FREE?<br />
  34.               Can <strong>YOU</strong> give us stuff for FREE? </p>
  35.           <p>If so contact us, or come down to The Lighthouse and talk to us. We need your help.</p></td>
  36.       </tr>
  37.     </table>
Feb 5 '10 #1
6 2359
drhowarddrfine
7,435 Expert 4TB
In one of your stylesheets you have 'body p {text-align:center}'
Feb 5 '10 #2
acorna
4
Thank you for your reply.

However, I cannot find this code. Could you be more specific.

Regards
Ray
Feb 5 '10 #3
drhowarddrfine
7,435 Expert 4TB
It's not in what you posted, it's in your link in the HTML.
Feb 5 '10 #4
acorna
4
Wow! great spot. That was in the footer.

How did that have an effect on the main code?

Ray
Feb 5 '10 #5
drhowarddrfine
7,435 Expert 4TB
'body p' means all p that's a descendant of body. That's the "cascading" part of CSS. It doesn't matter where you declare it but <style> belongs in the <head>.
Feb 6 '10 #6
acorna
4
Thanks again dr. The css in the footer is only temporary until the contents have been decided. All css will eventually be in one file.

Thanks for the explanation, it's appreciated.

Ray
Feb 6 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Arun Nair | last post by:
Hi, I have the following jsp page. I am able to view only a part of it(until the occurence of the first City text box). If i remove the first few fields from the page, I am able to see a few...
0
by: deepaks85 | last post by:
Dear Friends, I am trying to upload multiple files. But I can't find why it is not working fine. Here is the code......... numfile.php <form method="POST" action="fileupload.php"> <p...
5
Tarantulus
by: Tarantulus | last post by:
Hi, ok, quick description of the problem, I'm trying to reference the postdata from some checkboxes. Unfortunately the checkboxes are dynamically generated therefore I don't know how many there...
7
by: Dave Hardenbrook | last post by:
I am new to ASP.NET (only coded web pages in HTML in the past), and I'm having some trouble: I have a form on which a visitor to my page can fill out comments and send them to my E-mail box. The...
2
by: yangtono | last post by:
Hi, I am creating a table to list some data. The table is using a sorting and highlight function that I found from the net. I can't attach image here, basically html will wrap the heading,...
18
vikas251074
by: vikas251074 | last post by:
I am using ASP In my company, all employees have to sent materials out of premises. Any employee who need to sent material out will use this web application. In the first page, an employee enters...
2
by: Kevin | last post by:
I am having difficulty updating a variable page-time-stamp in the following snippit. The variable time-stamp is initialized from the attribute time-stamp from the log element. Some of the page...
8
by: harryjohal | last post by:
<?php $host="localhost"; $username="user"; $password="rmypwd"; $db_name="mydb"; $tbl_name="articles"; $cmd=$_GET; $id=$_GET;
1
by: aashishn86 | last post by:
in my form i give the user two options, either to 'add a new transaction' or delete an existing one. the code for it is: for add transaction <table align=center border='1'...
1
by: irfanshariffa | last post by:
<html> <head> <script type="text/javascript" language="javascript"> function validate() { if (document.form.fname.value=="") { alert("Enter your Name"); document.form.fname.focus();
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.