Hi again, I've been trying to get my first CSS to work. I used the following script: <style type="text/css"> body {margin-left:60px} </style> When I view the html file on my hard drive with FireFox, it works. But when uploaded to RootsWeb it doesn't work: http://www.rootsweb.ancestry.com/~ctmanshs/00_templat es/bare.htm Tried FF, IE8, and Chrome. Could the RW banner the culprit? Solutions? Thanks, George
George, There are sevedral things but the main one is the RootsWeb external style sheet. The RootsWeb style sheet is called after your page style and obviously has a body style that is over-rding your margin (they want their banner to go all the way across the page). Since RootsWeb puts their stuff in automatically at the body tag I don't know any way to get your body style definition in after theirs. Instead of styling the body, I'd suggest styling a div placed immediately after the body tag. Use the same margin-left style. Also, you should close out every style in a definition with a semi-colon. It's not required for the last style but a good habit to get into anyhow. Leaving the last semi-colon off is a bad habit that will bite you eventually. Also, it's also a good idea to enclose your style definitions in HTML quotes so older, non-style browsers will ignore them rather than displaying them. So try this: <style type="text/css"> <!-- div.main {margin-left: 60px;} --> </style> : : <body> <div class="main"> : : </div> </body> Jim Rickenbacker ----- Original Message ----- From: "George Waller" <George@waller.org> To: <Rootsweb-help@rootsweb.com> Sent: Sunday, December 20, 2009 3:26 PM Subject: [ROOTSWEB-HELP] Bummer on my first CSS :-( > Hi again, > > I've been trying to get my first CSS to work. > > I used the following script: > > <style type="text/css"> > body {margin-left:60px} > </style> > > When I view the html file on my hard drive with FireFox, it > works. But when uploaded to RootsWeb it doesn't work: > > http://www.rootsweb.ancestry.com/~ctmanshs/00_templat > es/bare.htm > Tried FF, IE8, and Chrome. > Could the RW banner the culprit? > Solutions? > Thanks, George > > > > > > ------------------------------- > To unsubscribe from the list, please send an email to > ROOTSWEB-HELP-request@rootsweb.com with the word 'unsubscribe' without the > quotes in the subject and the body of the message