FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

What's wrong with my coding?

 


woundedhealer
I've got something weird happening ... or I've made a silly mistake.

This is my problem:
Code:
<em class="em">B. POEMS REFERRING TO ARTHUR THE GULEDIG</em><br>


The text isn't in italics as should be, nor is the css working.

This text is fine:
Code:
<em class="em">A. POEMS REFERRING TO EARLY TRADITIONS</em><br>


I can't see any difference in them. d'oh! I hope someone can.

Here's the page in question.

http://www.celticawen.frih.net/poetry/welsh/4ancientbooksofwales/contents.php
alalex
i actually see both on them with italics, using mozilla. I would change the name of your class:
Code:
(line 127)
.em {
color:#A65300;
font-weight:bold;
}

To something not being "em", that may be confusing. How about take out the <em class="... thing and instead put <span class="italics"... and put in the class italics something like this:
Code:
.italics{
font-style:italic;
color:#A65300;
font-weight:bold;
}


And that should work perfect! Wink
woundedhealer
I changed the class from em to italics, but it's made no difference. In my browser, all the texts starting with a letter is in italics except 'B'. What I can't understand is the italics (em) is done in html - <em></em> There's no difference between B and the other letters, so this makes no sense.

Why <span class="itaics">?
Star Wars Fanatic
It is because you are missing the "m" in "em" on B. Laughing

Change this:

Code:
<em class="italics">B. POEMS REFERRING TO ARTHUR THE GULEDIG</e>


To this...

Code:
<em class="italics">B. POEMS REFERRING TO ARTHUR THE GULEDIG</em>
Azmo
a tips.. let's say that you want 2 exact same things.. you have 2 codes.. 1 work, the other don't.. and u cant find out what's wrong...

copy paste!!! copy the one that works and paste it over the one that did not work.. can be easy to miss a letter or a slash or something sometime..
woundedhealer
Azmo wrote:
a tips.. let's say that you want 2 exact same things.. you have 2 codes.. 1 work, the other don't.. and u cant find out what's wrong...

copy paste!!! copy the one that works and paste it over the one that did not work.. can be easy to miss a letter or a slash or something sometime..


I did that. I copied and pasted 'D' into 'B's place and it didn't work. I was hoping I had made silly mistake like you mentioned, but I hadn't.

Quote:
It is because you are missing the "m" in "em" on B.


That only happened yesterday when I was playing about with it. As you can see from my first post, the m was originaly there - I copied and pasted it there. I've now put it back in and it still isn't working.

I've got an html version of this page on my laptop and 'B' is working perfectly in my browser, so I copied and pasted that line into the php version, but still no luck.

[EDIT] It's sorted, and of course, it was something really silly. The mistake was in the line above, I had <b instead of <b>. Thanks for trying to help [EDIT]


Last edited by woundedhealer on Tue Apr 17, 2007 2:47 pm; edited 1 time in total
Azmo
not something you forgot to include or start a session or something?
sonam
This is not work because your BR tag before is not closed.

Code:
<br
       <em class="italics">B. POEMS REFERRING TO ARTHUR THE GULEDIG</em><br>


It must look like:
Code:
<br>     
        <em class="italics">B. POEMS REFERRING TO ARTHUR THE GULEDIG</em><br>



Sonam
alalex
when i entered your site to check if it worked, it did. Are you sure it is not working? which browser do you use?
sonam
Quote:
when i entered your site to check if it worked, it did. Are you sure it is not working? which browser do you use?


Yes, it is looking how problem is solved but he/she didn't give us fitback.

Sonam
Azmo
so everything is solved? tell us! always fun to hear that someone have solved their problem Very Happy
woundedhealer
Azmo wrote:
so everything is solved? tell us! always fun to hear that someone have solved their problem Very Happy



It looks like my [Edit] got missed by everyone.

Yes, I solved it all on my own, although I did make a mistake in my edit and say I had done <b instead of <br, but the result would have been the same.

It's always the silly little mistakes which does it. We look for major errors and miss the little things. It's another lesson I've learnt - if there's a problem it may not be where you thnk it is.
cavey
ps. you could replace <em class="em"> with just <em> - it will automaticly be italic. And in your css-file, you could write em {...} instead of .em {...}
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.