Take a look at the following code:
Now here is the relavant CSS that matches any of the ID tags:
I can't figure out why in IE7 it works but in Firefox it bombs out. Url: www.anthonyw.net/indextest.php
Code:
[SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]html[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]head[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]title[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2]Anthony W.[/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]title[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<!--[/COLOR][/SIZE][SIZE=2][COLOR=#008000] our style sheet [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]-->[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]link[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]rel[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]stylesheet[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]type[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]text/css[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]href[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]mystyle.css[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]head[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]body[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]span [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]id[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]button[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]img[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]src[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]./images/buttonl.jpg[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]span[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]id[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]buttonm[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#ff0000]style[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]padding-bottom: 19px;[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]a[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]class[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]button[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#ff0000]href[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]./index.php[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][SIZE=2]test[/SIZE][SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]a[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]span[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]img[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]src[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]./images/buttonr.jpg[/COLOR][/SIZE][SIZE=2]'[/SIZE][SIZE=2][COLOR=#0000ff]/></span[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]> [/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]body[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]html[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE]
Code:
[SIZE=2][COLOR=#008000]/************** how we make our buttons on the web page**************/[/COLOR][/SIZE] [SIZE=2][COLOR=#008000]/* each button contains a left, middle, and right so as the text[/COLOR][/SIZE] [SIZE=2][COLOR=#008000]grows horizontally so does the button*/[/COLOR][/SIZE] [SIZE=2][COLOR=#008000]/* this is the main div tag container for a button*/[/COLOR][/SIZE] [SIZE=2][COLOR=#800000]#button[/COLOR][/SIZE][SIZE=2] {[/SIZE] [SIZE=2][COLOR=#ff0000]text-align[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]center[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2][COLOR=#ff0000]color[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]white[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2][COLOR=#ff0000]height[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]50px[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2][COLOR=#ff0000]width[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]auto[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2][COLOR=#ff0000]padding[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]0px[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2]}[/SIZE] [SIZE=2][COLOR=#008000]/* this is the middle element of the button*/[/COLOR][/SIZE] [SIZE=2][COLOR=#800000]#buttonm[/COLOR][/SIZE][SIZE=2] {[/SIZE] [SIZE=2][COLOR=#ff0000]padding-top[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]19px[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2][COLOR=#ff0000]height[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]50px[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2][COLOR=#ff0000]width[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]auto[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2][COLOR=#ff0000]background-image[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]url('./images/buttonm.jpg')[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2][COLOR=#ff0000]background-repeat[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#0000ff]repeat-x[/COLOR][/SIZE][SIZE=2];[/SIZE] [SIZE=2]}[/SIZE]
Comment