 |
04-19-2008, 05:11 PM
|
CSS Text Problems
|
Posts: 7
|
I am having a crazy problem with my site. None of my CSS text is working properly. Here is the coding:
-------------------------------------------
Code:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>About :: internetq internetq LLC - IT Consulting and Interactive internetq Development - Blank Blank</title>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:active {text-decoration: none}
A:hover {text-decoration: underline}
body {
background-image: url(../images/bg_body.jpg);
.style10 { font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #AF1C22;
}
.style12 { font-size: 12px;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #333333;
}
.style6 {font-family: Georgia, Times New Roman, Times, serif}
.style7 { font-weight: bold;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 18px;
font-style: italic;
}
.style8 {color: #666666}
.style9 {color: #AF1C22}
.style10 {font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #AF1C22;
}
-->
</style>
</head>
<meta name="description" content="internetq internetq, solutions to companies of all sizes.">
<meta name="keywords" content="internetq, aris tech, internetq internetq, aris tech internetq, internetq internetq llc, internetqinternetq, internetqinternetq.com, www.internetqinternetq.com" />
<body onload="MM_preloadImages('../images/consulting_roll.gif','../images/development_roll.gif','../images/footer/about_roll.gif','../images/footer/contact_roll.gif','../images/footer/careers_roll.gif','../images/footer/enewsletter_roll.gif','../images/footer/clientlogin_roll.gif','../images/about/introduction_roll.gif','../images/about/history_roll.gif','../images/about/press_roll.gif','../images/about/partners_roll.gif')">
<table width="900" border="0" align="center" bgcolor="#FFFFFF">
<tr>
<td><table width="100%" border="0" align="center">
<tr>
<td width="350"><img src="../images/internetq_logo.jpg" alt="internetq internetq LLC" width="350" height="50" longdesc="http://www.internetqinternetq.com" /></td>
<td width="182"> </td>
<td width="150"><a href="http://www.internetqinternetq.com/consulting" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Consulting','','../images/consulting_roll.gif',1)"><img src="../images/consulting_norm.gif" alt="internetq internetq Consulting" name="Consulting" width="150" height="50" border="0" id="Consulting" /></a></td>
<td width="200"><a href="http://www.internetqinternetq.com/development" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Development','','../images/development_roll.gif',1)"><img src="../images/development_norm.gif" alt="internetq internetq Development" name="Development" width="200" height="50" border="0" id="Development" /></a></td>
</tr>
</table>
<table width="900" border="0" align="center">
<tr>
<td background="../images/nav-background.gif"> </td>
</tr>
</table>
<table width="900" border="0" align="center">
<tr>
<td height="178" background="../images/bg_intro"> </td>
</tr>
</table>
<table width="900" border="0" align="center">
<tr>
<td width="144" height="216" valign="top"><table width="100%" border="0">
<tr>
<td class="style103"> </td>
</tr>
<tr>
<td class="style101"><a href="http://www.internetqinternetq.com/about" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Introduction','','../images/about/introduction_roll.gif',1)"><img src="../images/about/introduction_norm.gif" alt="internetq internetq Introduction" name="Introduction" width="125" height="25" border="0" id="Introduction" /></a></td>
</tr>
<tr>
<td class="style101"><a href="http://www.internetqinternetq.com/about/history.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('History','','../images/about/history_roll.gif',1)"><img src="../images/about/history_norm.gif" alt="internetq internetq History" name="History" width="125" height="25" border="0" id="History" /></a></td>
</tr>
<tr>
<td class="style101"><a href="http://www.internetqinternetq.com/about/press.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Press','','../images/about/press_roll.gif',1)"><img src="../images/about/press_norm.gif" alt="internetq internetq Press" name="Press" width="125" height="25" border="0" id="Press" /></a></td>
</tr>
<tr>
<td class="style101"><a href="http://www.internetqinternetq.com/about/partners.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Partners','','../images/about/partners_roll.gif',1)"><img src="../images/about/partners_norm.gif" alt="internetq internetq Partners" name="Partners" width="125" height="25" border="0" id="Partners" /></a></td>
</tr>
<tr>
<td class="style101"> </td>
</tr>
<tr>
<td class="style101"> </td>
</tr>
<tr>
<td class="style101"> </td>
</tr>
</table></td>
<td width="16"><div align="center"><img src="../images/bg_line.gif" width="1" height="260" /></div></td>
<td width="726" valign="top"><table width="100%" border="0">
<tr>
<td class="style2 style6 style7"> </td>
</tr>
<tr>
<td class="style2 style6 style7"><span class="style3 style9">About Us :</span><span class="style8">: Introduction</span></td>
</tr>
<tr>
<td><hr /></td>
</tr>
<tr>
<td class="style6"> </td>
</tr>
<tr>
<td class="style10">Innovative Solutions From An Experienced Partner</td>
</tr>
<tr>
<td class="style12">Here at internetq internetq we are a company that is actively engaged in further developing the web for every person. It is our goal to bring every company and every person that we can into of the greatest information source ever created by mankind. In today's fast paced environment every business can benefit from having a presence on the web, whether it be only a website, or whether it be a mass advertising strategy. We make no difference between a small single employee company and a corporation that employees thousands. We believe that the Internet is a device that when used properly can boost the economy of our planet in a way like nothing else in history. We are dedicated to bringing that dream of global visibility to every company that can benefit from it. It is guaranteed that the Internet is going to become a greater and greater part of our lives and our jobs. At this time while the effects of this era of technology are just starting to explode in a way that few could have predicted 30 years ago we are working hard to bring the highest quality web development to our customers.</td>
</tr>
<tr>
<td class="style101"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td><hr /></td>
</tr>
</table>
<table width="900" border="0" align="center">
<tr>
<td width="456" height="27"><a href="http://www.internetqinternetq.com/copyright"><img src="../images/footer/copyright.gif" alt="internetq internetq Copyright" width="350" height="25" border="0" longdesc="http://www.internetqinternetq.com/copyright" /></a></td>
<td width="54"> </td>
<td width="60"><div align="center"><a href="http://www.internetqinternetq.com/about" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('About','','../images/footer/about_roll.gif',1)"><img src="../images/footer/about_norm.gif" alt="internetq internetq About" name="About" width="50" height="20" border="0" align="absbottom" id="About" /></a>
</div>
<div align="center"></div></td><td width="60"><div align="center" class="style101"><a href="http://www.internetqinternetq.com/contact" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','../images/footer/contact_roll.gif',1)"><img src="../images/footer/contact_norm.gif" alt="internetq internetq Contact" name="Contact" width="50" height="20" border="0" id="Contact" /></a></div></td>
<td width="60"><div align="center" class="style303"><a href="http://www.internetqinternetq.com/careers" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Careers','','../images/footer/careers_roll.gif',1)"><img src="../images/footer/careers_norm.gif" alt="internetq internetq Careers" name="Careers" width="50" height="20" border="0" id="Careers" /></a></div></td>
<td width="80"><div align="center" class="style101"><a href="http://www.internetqinternetq.com/enewsletter" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('eNewsletter','','../images/footer/enewsletter_roll.gif',1)"><img src="../images/footer/enewsletter_norm.gif" alt="internetq internetq eNewsletter" name="eNewsletter" width="80" height="20" border="0" id="eNewsletter" /></a></div></td>
<td width="100"><div align="center" class="style101"><a href="http://www.internetqinternetq.com/login" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Client Login','','../images/footer/clientlogin_roll.gif',1)"><img src="../images/footer/clientlogin_norm.gif" alt="internetq internetq Client Login" name="Client Login" width="85" height="20" border="0" id="Client Login" /></a></div></td>
</tr>
</table>
</tr>
</table>
<br /><div style="z-index:3" class="smallfont" align="center">Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-139461-1";
urchinTracker();
</script>
</body>
</html>
---------------------------------------------------------
Last edited by Wingit1 Global : 04-19-2008 at 06:31 PM.
|
|
|
|
04-19-2008, 06:00 PM
|
Re: CSS Text Problems
|
Posts: 1,608
Name: Stefan
Location: London, UK
|
What exactly is wrong??
Before we go anywhere, please move you meta tags up into the head section, I hate seeing code like this.
Also, I hate to see tables, I suggest you move from tables to divs, but whatever.
And, please put your code between the [ CODE ] tags on the forum, thanks.
|
|
|
|
04-19-2008, 06:25 PM
|
Re: CSS Text Problems
|
Posts: 7
|
The problem is that my text does not appear with the CSS changes. For example, my paragraph is using style12, yet when I go to the browser and look at it, it does have the style12 changes (the 12 font, dark black text, etc). And it goes for all the text on the page. So something is conflicting with the coding or something, but I have no idea what. Any ideas?
Regarding the tables, you are right, I should use DIV tags, but I don't really know how.....need to look into it.
Also, sorry about not placing the CODE tags on, didn't cross mind....but they are on now. =D
|
|
|
|
04-19-2008, 06:25 PM
|
Re: CSS Text Problems
|
Posts: 7
|
Oh, and I will move the META tags up.... =P
|
|
|
|
04-20-2008, 10:48 AM
|
Re: CSS Text Problems
|
Posts: 6,534
Location: Tennessee
|
Typical Dreamweaver MESS of code.
Create ID's and classes that have MEANING - not style10, style12, etc. - those have no meaning at all.
Lose the tables for layout - that's NOT modern web design, tables were meant for tabular data only.
You are running into the cascade and specificity issues. I suggest that you learn what those mean and how they work.
If you're going to use the XHTML doctype, then coding like "align=center" is NOT proper for that doctype -its old deprecated code that is better left behind. It's presentational, which is what CSS is meant to do.
The first thing you need to do is get rid of all of this kind of nonsense:
Quote:
|
<td class="style2 style6 style7"><span class="style3 style9">
|
That's just a mess and that's what happens when you let DW create it's own code w/o you understanding what to do. With all that you've got the potential to have all kinds of stuff clashing - clean all that out and create ONE class that does what you want - not 10. Then you might be able to figure out just what is affecting your text formatting.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
|
|
|
|
04-21-2008, 12:11 AM
|
Re: CSS Text Problems
|
Posts: 1,013
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Quote:
|
Create ID's and classes that have MEANING - not style10, style12, etc. - those have no meaning at all.
|
Dreamweaver is a great tool, I use it, but if you are going to use it professionally, I recommend learning to style and code HTML documents BY HAND.
|
|
|
|
|
« Reply to CSS Text Problems
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|