using css with includes
Ok I finnally got the include to work in php now the css does not work. Will someone explain why. Since there is more then one file I uploded them.
Attached Files
The css is applied. What is not working as expected?
At least 98% of internet users' DNA is identical to that of chimpanzees
Originally Posted by
Fang
The css is applied. What is not working as expected?
http://www.albanysite.com/workfolder/template.html
Here is the way it should look.
Miss-matched (div) tags.
Correct version:
Code:
<div id="header">
<div style="text-align: center"><h1>Albanysite.com</h1>
</div>
<div id="dolphincontainer">
<div id="dolphinnav">
<ul>
<li><a href="localhost/" class="current"><span>home</span></a></li>
<li><a href="/chat/"><span>chat</span></a></li>
<li><a href="/upload"><span>uploads</span></a></li>
<li><a href="/phpBB3"><span>forum</span></a></li>
<li><a href="/gallery"><span>gallery</span></a></li>
<li><a href="/download"><span>download folder</span></a></li>
<li><a href="/comments"><span>mailto</span></a></li>
<li><a href="/shop"><span>store</span></a></li>
</ul>
</div>
</div>
<body>
php version:
Code:
<div id="header">
<div style="text-align: center"><h1>Albanysite.com</h1>
<div id="dolphincontainer">
<div id="dolphinnav"> </div>
</div>
</div>
<ul>
<li><a href="localhost/" class="current"><span>home</span></a></li>
<li><a href="/chat/"><span>chat</span></a></li>
<li><a href="/upload"><span>uploads</span></a></li>
<li><a href="/phpBB3"><span>forum</span></a></li>
<li><a href="/gallery"><span>gallery</span></a></li>
<li><a href="/download"><span>download folder</span></a></li>
<li><a href="/comments"><span>mailto</span></a></li>
<li><a href="/shop"><span>store</span></a></li>
</ul>
</div>
</div>
</div>
At least 98% of internet users' DNA is identical to that of chimpanzees
All css mastakes have to be simple by nature bacause css is simple but I do not care how hard I looked could not see it.
www.albanysite.com/workfolder/
Take a look at your fix..
Last edited by dvdljns; 05-20-2010 at 03:31 AM .
Reason: forgot to show solution
Use a DTD:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Duplicate elements:
Code:
<head>
<title>albanysite</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="nav.css" type="text/css" MEDIA=screen />
</head>
<div id="header">
<div style="text-align: center"><h1>Albanysite.com</h1>
</div>
<div id="dolphincontainer">
<div id="dolphinnav">
<div id="dolphincontainer">
<div id="dolphinnav">
<ul>
<li><a href="localhost/" class="current"><span>home</span></a></li>
<li><a href="/chat/"><span>chat</span></a></li>
<li><a href="/upload"><span>uploads</span></a></li>
<li><a href="/phpBB3"><span>forum</span></a></li>
<li><a href="/gallery"><span>gallery</span></a></li>
<li><a href="/download"><span>download folder</span></a></li>
<li><a href="/comments"><span>mailto</span></a></li>
<li><a href="/shop"><span>store</span></a></li>
</ul>
</div>
</div>
</div>
</div>
<body>
Always check the generated code in your browser.
At least 98% of internet users' DNA is identical to that of chimpanzees
Thats the bad thing about using a text editor like gedit instead of a ide but I am as new at linux as I am at php and the editor offered by debian was worse.
Now I have to learn how to add this to php programs I downloaded thought it would be easy like with asp but all I have got so far is an error that the header has all ready been sent and giberish where the programs code is.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>albanysite</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="nav.css" type="text/css" media="screen">
</head>
<body>
<div id="header">
<div style="text-align: center"><h1>Albanysite.com</h1></div>
<div id="dolphincontainer">
<div id="dolphinnav">
<?php include'menu.html';?>
</div>
</div>
</div>
</body>
</html>
At least 98% of internet users' DNA is identical to that of chimpanzees
I know the answer is in there but I am going to find the right way to aply it.
Code:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/chat/index.php:11) in /var/www/chat/index.php on line 36
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/chat/index.php:11) in /var/www/chat/index.php on line 36
‹������ÕýoÛ¶òçØÿÀiØÜb³e'é—#{X“´ëC–‰óú¶¢h‰‘ÙP¤FÒq\ìw$­ÈŽœ:Eó€ 1yºï;݇“|·ÿÇÞèÏã2±… Çg¯ßÇï¶÷âx´OþóÛè÷CÒëôâøà("ÑÄڲdz٬3Ûî(Ç£“øÉ{=$Xœ;™Í¢á·ÇùºÒˆ{/_¾ô$™Ñ> ü$–[Á†ÙU&>JCþ!{z4Jb8³” ×6û{ʯў’–IÛÍK‘Ôß‘e×6F)»$Pm˜œ^·_D$þ,«S;¬‘ajÌ*I6ˆr&™¦Vé…SÙíôjD‚ËK¢™D0#2Ñì¢ò“P)e@Ò„Úø‚^!RþDÄ‚>@TМÅ×mOÜÀÕL”¶éÔ’b¾1ÆìݼÍ%—&~%¦ìÔ2&bG×qþó’üy)@—<-U9-×1GÖß>úæ¹#§¶Tº ¢Y€ËÎAtäPÈàÞ¢º@*,Ó’ZFî-Ú�×»%Ÿ"Æ×,¨ÎÙ‚£ì¼L©>“j^Z"¨Ì§Uƒè_ôŠž:àÏ�6ltºN³&N•f&&±'>z�)Eöôá…Œ©aÏv^NÆÌÿ@ˆ¦ùÃKù¤Tafܦ“Y.ÛâÐI’±ÊæD°[@~r9ˆº O•µ›?Îxf'µû„ñ|b $`–ñ+³ATP.Ïg\ºž…@*xÜR¨ôLƒ2cJM 䲄ìíœð,cPN}«0ðRFŽ©?]Q(’ƒèYwgçõóíí›’uŒZš1AçžQí¸=ív»qš¦kœj×Ài»»)+HµóTÏË`]íX1IÇ‚mÄc>ÕÂsª.Os†p™±ëN9)k0R®ò "î>ÙévËë]Æ1I50¤Ì!=0„Õ}ÜÃô/¶nƒ¶oƒv~ƒøê‘º“ATË“o‹>!cn×.ùÐb„©!äèös€FBå> à ±êã![IK˜E„))�¶¢…Jše\æ}ÒÝ Rûx¢ée®ÕTf}®~ÜÚ¬«»qÁ�V®:¥Ì[O 플Úö5ù~ïåþÁë_w½ßÁp»Åú=Œ8ªæžÃ ºÜœ@¨´‚_A#RE\ÙàTÆ PË•ì©$«ÌËÀn‡ïŸ=q°a 3eS ˆ…¿6s^ƒƒÞöcÍqÃOÑBQÛwõ%©QÚ-¡P�¯[£ÙÀˆù]5.x“j­fç(¡“󋨞m:Õí+Ç8/,o•µª�]À½ X*xzæPp ´4ìqËk|ޝºiýLì„›ŸIËKÍÔL¶ªêÐz‚ïÓ¸F·¹”­s­Í¸)¡˜ø�Eî]Š©K_ïÝݨm¼ôÉS—1S1„éfökÈp1¾ÄIaHbxšÄˆ¶¤éb2©^»/Š6›™>ÙÚjwwÚ[Ýîóÿ›€KPüë¹}6ÀŸ¯C«ñÆ<|Ǽè0T*ro=n€ö;_LIh±p‚§†1‚c/\¸ t•™qí„$|(“˜ß¶e}"„zû´ûƒSçÌàô\°¾¯é6[I¤[$õ†fÝ`ì<†µ-46UÏ¡Ÿ{ÄÐÛ¢•~õøº°€ðJå8輤ûªòÇ bir—òëµ/µ·�oü¹Á‚¯¥8]J&ÌæŠ&Xj³B}ˆMjakV%vŽ…×ÇúŸšÚN6vÄðþ˜Ú$öˆÃ˜iuö r¾¢xƒ¿Ö f‰5ÁXª+’#„œ¤"Y23öf5º°1{Wyfï/rd1ÇÑ}áÊÅ­!ÆPvÀÏ8áÃÕÁ ‡¦t\oýÕ)­Ÿ¼‰æ=–¡ŽÄ²·8´}è8í’ÛÝ݆pQ]0É!¸Ã_ÃiÓ™Ì7P<[ï›I7[û=FÉåJ1žBªÞ97žž›é¸à¡ú-C–êÆ‚tuDÿáV3óä‡Èêñ“ªXº{Dhš2c.Ù„Ý|;ÏÈãêOªzT7¿êmÍYÀ´Î”6sM}c¨fÙ.¹€á¿mø'{[Ø®çÂä‰''¿Ÿ¾iî½n‘‘*,»!\›‡jS}†ï¨–n18ŒFü¶Fnöóu£AßhGîŸK‹‘¿Úß~¡)¦ð@³üŠõ ˹q{ø{r ’ÈYI>à°ÿ£›r÷.Æ*Í6ã°Áu:‡Á‹IRuI¼xúÁo·b¸Xøb·ÜaQs›ÈÒ"êç¹å]tç¼iõln5{~—§àJú"¦Ê¹›^ ®©ð¬\ýªc¹‡�Ê{òæ/^’—/ùðžìœ’c­¬«³àÅä–`Ò‘š‚3ÿÍtF%×C"ظՌAj’ñœ¬îøÿƒÕ]Ðâ×vCó–—Uü·î¿áy½/ÂqÂËuÙ½~ У$Fàpä£åÎ葲÷IjÑ«CÀŸ*›;4ü?þM„éô]��
I know this is asking a lot but can you download these zips and give me a real world example.
www.albanysite.com/download/
also /uploads
Last edited by dvdljns; 05-20-2010 at 07:46 AM .
Reason: typo
Those are problems with php in the chat documents. Ask in the php forum.
At least 98% of internet users' DNA is identical to that of chimpanzees
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks