Jump to content

gameboyz

Members
  • Content Count

    91
  • Joined

  • Last visited

Community Reputation

0 Neutral

About gameboyz

  • Rank
    Newbie
  1. I have to add that, I use only code view.
  2. I was using notepad++ at first and I liked it, however I thought I would give Dreamweaver a try.I don't exactly hate Dreamweaver, but I am still getting used to it. And anybody here used dreamweaver with PHP sites? Because I dunno if it's just me, or does Dreamweaver seems unable to join the require() files if it's 2 staged? Like I require() file A which require() file B... Dreamweaver can join file A to the existing one but no file B.And what are the benefits of using Dreamweaver? Because if there are not, I think Dreamweaver is more of a hassle. I was working on my CSS just now and Dreamweaver keeps trying to help me indent my codes (even though I unchecked the Indent feature)LOL. Hope you guys can teach this noob some tips
  3. display:none makes it hidden and does not take up space.visibility:hidden makes it hidden but it takes up space.
  4. Yep I use Standards Compliant mode all the time too, because I believe that browsers should follow the W3C guidelines. This is the reason why I don't use IE. Though I heard that IE8 is good. Lol. Thanks I'll try it out. I used display:block at first but I didn't use float:left, and it looks screwed up lol.Edit: After using display:block and float:left, is it a bad idea if I use padding to space them out?
  5. This is so weird. Check this out. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title>Shucks! | Home</title><script type="text/javascript" src="resources/scripts/jquery.js"></script><script type="text/javascript" src="resources/scripts/global.js"></script><style type="text/css">body {font-family:arial;margin:0;padding:0;background:#dce8f4;}a {text-decoration:none;}#wrapper {width:1000px;margin:auto;overflow:hidden;} #head { margin:0; padding:0; } #head .top { height:50px; background:#2675bf; } #logo { width:116px; height:46px; position:absolute; background:url(http://fabcode.org/shucks/resources/images/logo.png) no-repeat; } #logo-omo { color:#ffffff; font-size:10px; font-family:arial; position:absolute; top:35px; margin-left:30px; display:none; } #navmenu { background:lightblue; height:50px; padding-left:10px; } #navmenu a { color: #000000; font-size:13px; font-weight:bold; line-height:37px; padding:11px 5px 38px 5px; } #navmenu a:hover { background:#d2f5b3; } #container { margin-top:25px; background:url(http://fabcode.org/shucks/resources/images/bg.png) no-repeat; } #container .top { background:url(http://fabcode.org/shucks/resources/images/bg-top.png) no-repeat; height:20px; margin-left:-25px; }</style><!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="http://fabcode.org/shucks/resources/css/ie7.css" /><![endif]--></head><body><div id="wrapper"><div id="head"><div class="top"><a href="http://fabcode.org/shucks/" id="logo"> </a><br /><div id="logo-omo">Back to Shucks!</div><br /></div><div id="navmenu"><a href="http://fabcode.org/shucks/file">File a Shuck!</a><a href="http://fabcode.org/shucks/browse">Browse for Shucks!</a><a href="http://fabcode.org/shucks/guidelines">Guidelines</a><a href="http://fabcode.org/shucks/faq">Help</a></div></div><div id="container"><div class="top"> </div></div></div></body></html> Save it as 1.html and open in IE7. Then remove the doctype declaration, save as 2.html and open in IE7. Hover your mouse over the navigation menu and see the difference. Why does a doctype affect the padding-bottom property? And how come this problem doesn't happen in FF?
  6. gameboyz

    Php Sessions

    Hello,I believe that if I want some sort of user login and logout feature on my site I'll need to use PHP sessions right? But how exactly do they work? Like how long does the server stores those variables for, and how do the server identify the user (I think it uses cookies, but I'm not too sure).And are sessions complicated? CheersFabian
  7. Problem solved, I dunno why LOL!Omg you guys are wrong lol. By not having <br /> tags there is a relationship between the #logo-omo and other elements that cause the other elements' positions to be affected upon display:block-ing the #logo-omo. But by placing <br />s these relationships are broken so the #logo-omo is an individual element which does not affect others. And it's tested with FF and IE.
  8. The #head div being pushed down is okay, what I want is for the #navmenu to be positioned further down. The margin-top property doesn't work in IE and I dunno why.And yeah, the blue streak behind the logo, that's what I mean.
  9. Nope it's not messed up. Not if you're referring to a blue streak across the page cutting through the logo.I removed all unnecessary properties from the #navmenu , leaving only a margin-top and a background (to identify its position) to see if it would work. And what do you mean by my #navmenu pushing the entire #head element object town?
  10. Without the <br /> everything shifts up and the same thing applies, that on IE the margin-top doesn't work.
  11. Please take a look.http://fabcode.org/shucksFor #head margin-top works in both FF and IE7.But for #navmenu it works only in FF.Weird huh? Seeing both are divs and have the same css properties.
  12. Okay thanks! The 2nd part, didn't occur to me before lol!I might be aborting this secureshare idea for something more practical.. hmm
  13. I googled for this and found out that you have to use a strict doctype so IE doesn't kick into quirksmode...However I AM using a strict doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> yet it doesn't work.http://fabcode.org/statickIt's the ID logo (#logo) now I'm using an anchor element to make it work, I wanted it to be a div initially but it doesn't work. Please help!
  14. Okay anyway any general precautions to securing a site against common methods of hacking?edit: How do you write a script such that: If it encounters an error, it runs die("Error message here"); , execution of other "success" strings are stopped but the HTML tags are unaffected so the HTML structure still flows smoothly instead of like, being cut off halfway so there is no end tags for half the elements.
  15. Google chrome, smart choice :)Hmm... a form is supposed to appear using jQuery's show() function when you click on the radio buttons (using the onclick event)Works in Firefox and IE...
×
×
  • Create New...