Hi JRoo - I had a chance to return here. Looking at the first block of code you posted, I have to say, your code is a mess !
- You have 2 sets of opening and closing body tags.
- The first body element begins with 2 break tags. Why?
- After that, there is only a 'div' which contains the text , which looks like it is supposed to be code. (Googling I get - A character entity reference for a 'non-breaking space' ? Gee I never knew about this).
This first body element looks like a total mistake. a large copy and paste error perhaps? The next body element begins with your navigation bar. - I notice that you only use id attributes. There are no classes. Usually this is not good. Id is the most powerful in the cascade. If you start out with this, the slightest conflict will send your page wonky.
- Each li has an a element with a span element inside it. But there is only one line of text, which is all inside the span. I don't see any styling for a span element in your css. It looks like the span tags are unnecessary.
In your old and new code
- I keep seeing position: absolute; and position: relative; but there are no further instructions. You have to declare the position with coordinates after you make this statement. Relative to what ? absolute exactly where ?
-You still have rules like
top: 0
; and
left: 120px;
Again,
margin-top
?
padding-top
? Broken looking phrases just like this do belong after the positioning rules discussed above. So the proper code would be like
#youridhere
{
position:relative;
left: -20px;
}
Maybe your disembodied positioning rules and the half completed 'top' and 'left' etc. got accidentally separated. This leads me to another question. Are you trying to modify a CMS template ? Because if you are I think you should forget it. You will only wind up beating your brains out against a brick wall. If you can't write your own, you are bertter off paying someone who you know can do it, to design one.
Finally - I would like to point you to w3schools. [
w3schools.com ]. And for the position property [
w3schools.com ] This site has a full reference with interactive examples for html, css, javascript and more. All the code, and how it is implemented. References are in right side column, tutorials in left.
It looks to me like you are new to code and are unsure of the syntax. Webmaster world and w3schools are all I've ever needed to learn to code my own pages.
Anyone - I seem to make a big stupid mistake every time I post advice like this on code. So if anyone spots an error in terminology or anything, I (and everyone else :) would be most grateful for a correction.