Jump to content

aquatsr

Members
  • Posts

    220
  • Joined

  • Last visited

Everything posted by aquatsr

  1. I believe font sizes should always be denoted in pixels, or such. It's like units. You don't leave off units in Science or Math calculations, it's the same thing with code. Specify 10px, rather than just 10.And run your code through a validator, it can't hurt. :)P.S.Generally Firefox conforms to CSS standards, whereas Microsoft Internet Explorer does funky stuff, although I haven't tested I.E. 7.Good luck.
  2. Use PHP. It can recognize the user's browser type, from there you can include which CSS stylesheet you want from a simple conditional statement.Here's some pseudocode:if user is running MSIE blah use ie.cssif user is running FF use ff.cssetc. oh yeah... that works too
  3. You can use PHP to do this... I'm very tired right now otherwise I'd point you to a helpful webpage.Try Google.
  4. The DOCTYPE declaration is necessary for your code to validate. However if all you're concerned with is how your site looks - nothing else - then you can remove the doctype.HOWEVER: Having valid code means that your site is compatible with future browsers and the constantly evolving web language. I recommend you find what is wrong and correct it so that the DOCTYPE declaration does not alter your page.
  5. When I work on large projects I first sit down with a piece of computer paper and do the following things:1. I draw the site layout I think I want. I usually have a ruler, pencil, and a good eraser. This way I can easily make the design evolve when I feel like changing it.2. I write down things my site may need. For example I may need a user-authentication system. I may need an area to input, manage, and delete news. I'll want an easy way to update content, and I also want my site secure.3. Once I figure out the design and what I want, I'll start writing some basic code and specifying rudimentary page names (i.e. user-authentication code would be in auth_user.php or something)4. After I've done something along the lines of steps 1-3, I go to my computer and start with the site design. I first code the CSS, and then the corresponding XHTML. I only make one page, and tweak it as needed for the others. Since I use PHP, my code can be placed into separate files and called as needed - very efficient.5. Next I try to integrate whatever I wrote in steps 2 and 3 into the design of the site. This usually takes up the majority of my time.I've found that some people can just sit down and punch out code, but nobody can make a good site without at least some basic planning.Good luck! (My site: http://www.dedicatedlyrics.com took the better part of two months to code and build. Now I'm furiously adding content to it)
  6. That's pretty easy actually. I recommend you looking into phpNuke or WordPress. Just Google them.
  7. Agreed. They're not mainly about security, although if your site isn't secure, you might as well just take it down. O'Reilly publishes books about a wide variety of web design languages AND also books on site security.
  8. body {background: url(yourbackground.jpg) no-repeat fixed bottom right;}#canvas {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;float: left;width: 800px;height: 1000px;overflow: auto;padding: 1em;} That is some simple css code. I recommend you read W3Schools' CSS and XHTML tutorial to understand the basics. In the XHTML you would want to enclose the content of your page first with a <body> tag. Then for your 'canvas' you would put <div id="canvas"> and </div> around your content.You will understand this better if you read the tutorials.
  9. If you're using a customized font I'm afraid your only options (as far as I know) are to have the user download the font from your site or to create text-images in, say, Photoshop or Macromedia Flash Pro or some similar program.Sorry.
  10. Well I'd have to see what the site looks like, but I'm assuming that the author wants every element with a border to have the border specified.Actually, nvm. I don't know, usually I specify things using body or some other indentifier, not the html. Good question.
  11. For the "stripes" you choose the background you want and set it using simple css or html commands.For the "canvas" you need to make a centered division (div) and using css give the div a white background.That will create the "illusion" of your white canvas flanked by stripes.
  12. anyone know a good script that will redirect the user after displaying a short message (4 sec)?
  13. Personally I use SMF from http://simplemachines.org
  14. Books, college, hands-on experimentation. Choose any two.
  15. I use hosting at A Small Orange, they charge a flat rate of $10 USD / year for your domain name. Hosting packages vary.http://asmallorange.com
  16. You can specify a division to scroll, and have the division a set height:#ilovescrolldivs {height: 600px;width: 1000px;overflow: scroll; /* Can also change "scroll" to "auto" or "hidden" */}
  17. huh? more information plz
  18. I think the best way to do it is to store encrypted passwords in a database and have the user input username and pass and check it against the database.You will need:A MySQL databasePHPA browserYou will need to make:A table that can store username and encrypted passwordA script that allows access depending upon username and pass entered and checkedA part of that same script that boots guests and unauthorized access attempts.You will need to:Add the access script on all pages you want to protect, pages must have a .php extension.
  19. OK. Say the field is DATE and I want to take off 3 hours?
  20. Why not just use images in a table format? The outer table cells would be your border and top and the center cell would be your content. Otherwise use divisions.
  21. you could do something like this, say you want to run queries in $sql1, #sql2 and $sql3 in order: <?php$result1 = mysql_query($sql1);if (isset($result1)) {$result2 = mysql_query($sql2);}if (isset($result2)) {$result3 = mysql_query($sql3);}?> Something along those lines.
  22. I input the date a new record is added by using the NOW() function in MySQL. The problem is that the server time is 3 hours ahead of local time, and I want to display the dates using php in my timezone. How do I do that while still using NOW()Also, if I wanted to display the date in the user's local timezone, how would I do that?
×
×
  • Create New...