|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello, this has been driving me nuts for 6 months and I cannot find an answer on the internet. I have tried so many fixes I could find that did not work. Please help!
Several pages on my website that have an H1 tag display black text like it should in I.E. 6 or 7. I have the newest version of Firefox and it display red text. One of several answers says to add the Doc Type and it should fix the issue. However, when I add the doc type, yahoo site builder takes it away when I go to publish the results. Is this the only reason and fix for my problem??? Take a look at http://www.selfdefenseproductsflorida.com for an example of one page doing this in red in firefox and black in I.E. Thanks for any help... |
|
||||
|
The source code for that page is rather hard to follow, but Firebug shows that somewhere Firefox is seeing a <font color="red"> tag being applied to the h1 element. I could not, however, determine where that line is located.
__________________
The best way to learn anything, is to question everything. Interestingly Average Security Blog |
|
||||
|
Hi Sindee,
Too many conflicts, I would suggest do a w3w check! <style type="text/css"><!-- BODY {font-family:"Arial"; font-size:12;margin:0px;padding:0px;text-align:center;min-width:965px;} P {font-family:"Arial"; font-size:12;} FORM {margin:0;padding:0;} #centerwrapper {text-align:left;width:965px;margin-left:auto;margin-right:auto;} --></style> <!--$begin pageHtmlBefore$--><meta name="robots" content="index,follow"> <!--$end pageHtmlBefore$--> </head> <body bgcolor="#FFCC99" text="#000000" link="#0000FF" vlink="#800080" topmargin="0" leftmargin="0"> Your style header and body header conflict with each other. Either stick to inline, on the page or put all your style as external. On page overides external. IE tends towards strict, whilst IE still interprets, hence the difference. Take care Keimos
__________________
Keimos - Always learning something new each day www.keimos.co.uk , www.keimos.net , www.selfpacedit.co.uk |
|
|||
|
I visited your website and I'm really not sure why your h1 font tags are displaying as red in Firefox instead of black. I'm not familiar with Yahoo Site Builder and not sure if it's displaying your CSS coding correctly. I'm using IE 6 browser, which displays the h1 text color as black. The h1 style tag may work if it is embedded between the head tags, ex. <head><style></style></head>, or it's probably inheriting the red text value from some content near it, including an active or visited link, or maybe another h1 tag is defined in some other external Style sheet used by Site Builder. Nevertheless, below are some options you can try in order to fix the problem. First, try changing the color value to one of the 3 options shown below. {color: black;} {color: #000;} {color: rgb(0,0,0);} Second, do not use the color property at all, maybe it will default to black. Third, try moving the following h1 tag style code from the body of your page to the top of your page; adding it to the existing style sheet shown between your header tags. See following example. Note. try #000000; or black; CSS color values. h1 { font-weight:bold; color: black; font-size: 18px; } Also don't forget to delete the following code from the body of your page. <style> h1 { font-weight:bold; color: black; font-size: 18px; } </style> Fourth and final option, use an inline style to define your h1 tags. This only controls the style for one element. You would have to do this for each occurrence of the h1 tag. Obviously, this is a lot of work you want to avoid. Inline CSS has the highest priority out of external, internal, and inline CSS. See example below. <h1 style="font-weight:bold; font-size: 18px; color: black;">Buy Taser, Stun Guns, Pepper Spray. Purchase Mace, Personal Alarms, Home Security Products, And Animal Repellents. Check Out Our Sale!</h1> Two puzzling things I noticed: I also noticed that you didn't define the color for the active link (which defaults to red) within your body tag as you did for a link and visited link. And why is the style tag between your header tags enclosed in comments (<--- --->). Some syntax Firefox doesn't support. I hope this helps... |
|
|||
|
The quickest way for you to fix this, as suggested above is probably to add style internally to the h1 tag. Its a kludge but it will fix any inheritance issues if you're struggling with troubleshooting the CSS.
Use a global editing facility so you only have to do it once. Dreamweaver allows you to do this, or you could get a text editor which allows you to make global changes such as NoteTab Standard (license costs £5) the code you would want would be something like: <h1 style="color: #000;">some text</h1> |
|
|||
|
Thank you for everyones help. unfotunately, I cannot do anything with a css stylesheet with yahoo sitebuilder. basically, with sitebuilder, you use templates..I used an html template and put the H1 tag in there and just pasted it on the page where I wanted it. It looks centered in IE and color black like it should in IE, firefox off centers it and makes it red. I did try to add the different color values and it does nothing.
What is there now is this: h1 { font-weight:bold; color:#000000; font-size: 18px; } </style> <h1>Buy Taser, Stun Guns, Pepper Spray. Purchase Mace, Personal Alarms, Home Security Products, And Animal Repellents. Check Out Our Sale!</h1> Cbosleeds suggested to do this : <h1 style="color: #000;">some text</h1> Isn't this the same as to what I have already?? Any other suggestions??? I did ask yahoo support and they are stumped...Thanks Everyone!
|
|
|||
|
The problem is that FF will render code as it truly is, and that means that any code tags that haven't been closed will be shown. IE is more forgiving and won't necessarily show your errors. So my guess is that you have an open red colour tag somewhere-I'd work on searching for that.
__________________
Read the forum rules about signature links. |
|
||||
|
Quote:
|
|
|||
|
Quote:
|
|
|||
|
sindee75, I think there is another h1 tag that has already been defined as red. You'll have to look for that tag. Unless you're okay with using normal text, you can also try using h2 or h3.
|
|
|||
|
WYSIWYG Sitebuilders are not good at applying multiple changes: So, it is often better to start again with a new page.
The "web developer" extension for Firefox shows that there are lots of problems with this page. See the HTML validation report on: [Invalid] Markup Validation of http://www.selfdefenseproductsflorida.com/ - W3C Markup Validator As others have said, web browsers do try to make sense even of faulty pages, but can become overwhelmed by errors. I'm surprised that the sitebuilder didn't insert a "doctype." Richard |
|
|||
|
Thank you to everyone who has posted and tried to help. Now, I am just tring to figure out if there is a print button in this thread so I can print out all replies to ty all suggestions
Cindy |
|
|||
|
Do you have access to the code itself? If you use a browser like firefox you can find it by the drop down VIEW, then page source. Put it in an editor such as edit plus, and then search for the term RED.
__________________
Read the forum rules about signature links. |
|
|||
|
Hello all,
I wish I could award someone with the problem solving answer I have tried all suggestions and the font is still red in firefox and text off alignment. I also tried searching the source code for a red h1 tag and cannot find one as suggested. I guess I will continue to lose sales from people using Firefox because the pages with the H1 tags look bad..Or, I'll have to remove the H1 completely. Sure don't want to have to remove it......I guess I'll leave this open for a while in hopes of finding an answer....Thanks everyone!!! Cindy |
|
|||
|
Quote:
Cindy |
|
|||
|
Several of you that mentioned the red text...Thank you!
I found the problem! I just don't know how to fix it! <tr> <td> <font color="red"><b>Sale!<font face=arial><b> THIS IS CAUSING THE PROBLEM! What is wrong with the code above? Is there an ending tag or something missing???? I can't believe the problem is almost solved! Thank you all. After 6 months of pulling my short hair out! I just love you guys! |
|
|||
|
Actually, the page contains:
Code:
<font color="red"><b>Sale!<font face=arial></font><b> There are various problems here: * The tags aren't "nested" properly - not closed in the correct order; * The "font face" is redundant because it's closed immediately; * The "font color" is not closed; * The second "b" should be "/b" So, what you probably intended: Code:
<font color="red" face="arial"><b>Sale!</b></font> The W3Schools website has a handy area for experimenting with the various tags. http://www.w3schools.com/ Richard
__________________
Comfortable accommodation in the Blackdown Hills, Devon, UK. Dickwella, Southern Sri Lanka: Relaxing stays; fascinating excursions. Last edited by richard-s; 10-17-2008 at 04:12 PM. |
|
|||
|
Thank you so much! I did finally realize that I did not have the closing tag of </font> and fixed that!
Now, I realize from the previous post that I am missing the </br> tag I really want to thank everyone from the bottom of my heart for helping me to find this solution after all these months! Even Yahoo support could not figure it out! Thank You!!!!!!!!!!!!! P.S. If you want a free-bee or a discount on our products, let me know you helped me on here. I want to show my appreciation! |
|
|||
|
Quote:
The missing tag was "</b>" to end the bold text; rather than "<br>" which inserts a "break" (that is a new line). ps. Thanks for your kind offer but our government no longer trusts us even to have an innocent pen-knife - far less a Taser. |
|
|||
|
WOW! It's great to come back from the weekend and find out that the 'elusive red text' has been found. We were all glad to help out. I know this is a big relief for you now. I wish you much success in your business!
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| White text, black page... Problem or not? | almer | Google Discussion Forum | 32 | 08-20-2005 02:26 PM |
| Firefox text size increases | ozchris | Accessibility and Usability Forum | 6 | 07-29-2005 12:49 AM |
| Black background with white text. Any chance of a penalty? | Aldo | Google Discussion Forum | 18 | 07-19-2005 03:35 AM |
| White Text and Black Page | jacobwissler | Google Discussion Forum | 5 | 04-05-2005 03:36 AM |
| Centering Left-Justified Text on the Page in Firefox | beelzebob | Graphics & Design Discussion Forum | 1 | 03-05-2005 10:35 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |