Log in

View Full Version : Glossy Horizontal Menu (floating right for some resoan)



queerfm
04-25-2008, 11:10 AM
Hi guys hope your all having a great day i am doing a website for a friend and he wants me to use Glossy Horizontal Menu - http://www.dynamicdrive.com/style/csslibrary/item/glossy_horizontal_menu/

However for some resoan it is floating right when it should be left
I have not changed any of the code so i dont know what is wrong please help

http://www.hypnosiswa.com/index.php

Thanks

rangana
04-25-2008, 11:21 AM
Highlighted causes the mess ;)


div.logo {display:block; float:left; position:relative; background-image:url(images/logo.png); text-align:left; line-height:37px; height:112px; width:462px; margin:0 auto 2ex; padding:0;}


Remove that part in highlighted :)

Quick side note,,,you don't have a DTD (http://alistapart.com/articles/doctype) in your page...without it...your're pushing IE into quirksmode.

...Also, <style type="text/css">, add the higlighted :)

See if it helps :)

queerfm
04-26-2008, 06:09 AM
Thanks for your help, the resoan why i dont have DTD is because i dont know which one to use its all so confusing...

I have never bothered with DTD and all my sites work fine. but if you can help me here is the basic

HTML - or it could be xhtml as i dont use table just all divs
PHP
Mysql
CSS files

rangana
04-26-2008, 06:14 AM
If I were to ask, I would use between the two:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


The earlier is for XHTML, and the later is for HTML ;)

BTW, has my suggestion in Post#2 resolved the issue :)

Medyman
04-26-2008, 03:39 PM
Thanks for your help, the resoan why i dont have DTD is because i dont know which one to use its all so confusing...

I have never bothered with DTD and all my sites work fine. but if you can help me here is the basic

HTML - or it could be xhtml as i dont use table just all divs
PHP
Mysql
CSS files


When in doubt use the HTML 4.01 Strict DTD. Most XHTML sites are only using HTML syntax just using some XHTML techniques (like closing image tags, etc...).

Here is a more general overview: http://www.webstandards.org/learn/articles/askw3c/oct2003/

But you 100% should include a DTD and validate your markup. The stress on standards complaint markup isn't just web nerds being super anal. It makes a real functional difference in how browsers render your page. You say that all your sites work fine without a DTD but that suggests to me that either (1) the markup is coded in quirks mode or (2) that you haven't tested in all relevant browsers