Jump to content

Fmdpa

Members
  • Posts

    1,035
  • Joined

  • Last visited

Everything posted by Fmdpa

  1. Yes, I replaced my <u> tags with spans when I saw that the validator didn't accept them. My problem is not that I don't like the default styles applied with <b> tags, I'm just wondering if using <b> tags is as bad as using the <font> tag. I would have converted to <span> + CSS already, but I don't know if <b> is considered by the search engines. You could be right about <em> and <strong>. They seem to be preferred in HTML5, anyway.
  2. Fmdpa

    Alternative to nl2br

    I'm trying to make do everything "properly" on my website. That, in my understanding, would exclude <br /> tags. Currently, my BBcode function uses the nl2br() function. How could I automatically convert paragraphs to block-level elements, instead?
  3. Fmdpa

    Height of lines?

    There is one problem that really stands out:<div id="header"><a href="http://www.viadeo.com/es/profile/eduard.lid">Profile</a><a href="web_designer/image_and_text_database.html"><b><h4>Web designer (databases)</h4></b></a></div><div id="content"><img src="images/me.JPG" alt="Eduard Lid" align="right" width="35%" height="100%"><img src="http://www.aquaculture.ugent.be/_img/database.jpg" alt="img database" align="left" width="30%" height="100%"></div><div id="footer"><p><p>Eduard Lid</p><p>(1152*720px)</p></div>An HTML tag always consists of an opening character (less than symbol) < the tag name followed by attributes (if there are any) and a closing character (greater-than symbol) ><tag_name...[ optional attributes like id="content", etc. ]...>
  4. Fmdpa

    Height of lines?

    He said 1.5 hours per day since October. Read the posts, thescientist.
  5. Fmdpa

    Height of lines?

    In case you are still wondering, there are three ways to have CSS styles in your HTML page: <html><head><!-- 1. --><style type="text/css">/* directly input your styles here */</style><!-- 2. --><link rel="stylesheet" type="text/css" href="your_stylesheet.css" /> <!-- include stylesheet with HTML --><!-- 3. --><style type="text/css">@import('your_stylesheet.css'); /* import stylesheet with CSS */</style></head><body><!--your web page with elements to be styled--></body></html>
  6. Well, wouldn't you like your site to be "better" than Google? Haha...a company worth billions (trillions?) and they still use old HTML: width=100%valignaligncellspacing...
  7. Fmdpa

    Height of lines?

    Yes. The tutorials don't because they are teaching CSS. It is easier to understand the tutorials when the CSS and HTML are together.
  8. I hope future JS specs allow you to apply custom styles to browser elements, like the alert, confirm and input boxes. Did you know that certain elements are actually created with HTML and CSS? It's called the Shadow DOM. It would be great if CSS had access to the shadow DOM.
  9. I try to always format text strategically, and it seems to work from what search engine referrals I've gotten.
  10. I've been looking at how I format text on my website. A couple of my font-effects (em, u) are from spans+css. I was considering converting my <b> and <i> tags to spans, too, but aren't <b> and <i> tags regarded as keywords by search engine spiders?
  11. Fmdpa

    Height of lines?

    Here's a link to some more tutorials you could try: http://dev.opera.com/articles/view/12-the-basics-of-html/http://www.opera.com/developer/wsc/
  12. Fmdpa

    Height of lines?

    Sorry, I assumed your native language was Spanish since you are in Chile. There are many great websites for PHP and Javascript, but I haven't found any HTML tutorials better than W3schools. There are lots of confusing things in HTML. Many HTML tutorial websites are old, so they teach things that are no longer true. Just keep learning, and it will all make sense someday.
  13. Fmdpa

    Height of lines?

    For me, W3schools is very clear and easy to learn from. Your trouble is not the fault of the tutorials. They are probably confusing because you are still learning English. Don't feel restricted to W3Schools tutorials, but they are the best HTML and CSS tutorials that I have ever seen.Here's a suggestion: buy a book on HTML and CSS. You can get a book for very little money on Amazon (used books). Before you buy the book, read customer reviews to see what the strong and weak points in the book are. This has good reviews: http://www.amazon.com/Head-First-HTML-CSS-...X/ref=pd_cp_b_1 You can buy it used here: http://www.amazon.com/gp/offer-listing/059...;condition=usedYou might consider buying a Spanish HTML book, if there is one. It would be much easier to learn HTML if the book was in your native language.
  14. No. Header sends a raw HTTP header. In this case, you want to tell the web browser that the content being displayed is PNG data. You would do it like this: header('Content-type: image/png');echo $imagedata;
  15. Yup, that worked. Thanks! include "C:/PHP/.htaccess"
  16. My goal was not to simply get the screenshots. I'm interested in knowing how it works. If I ever wanted to start an open-source project, this would be definitely be an idea!
  17. So in short, even if I got my hands on a rendering engine, it would still be a huge project to create a web page screenshot service?
  18. Ok, I entered this into my hosts file: 127.0.0.1 www.cyberstream.us cyberstream.us project localhost httpd.conf: <VirtualHost *:80>ServerName www.cyberstream.usServerAlias cyberstream.us localhostDocumentRoot "C:/PHP/www"</VirtualHost><VirtualHost *:80>ServerName projectDocumentRoot "C:/PHP/www-project"</VirtualHost> It works just fine, EXCEPT that the htaccess rewrites are not working. The rewrite module is loaded along with the other modules, so why wouldn't this be working?
  19. It actually reminded me of that old windows 98 (???) screensaver where you are bumping through a brick maze.
  20. Ok, I think I get it now. The HOSTs file is Windows' local DNS router. What's the etc/vhosts.conf file for?
  21. The current version of IE is 8, although IE9 is in release-candidate stage. IE9 only will work on Vista and 7 (Microsoft doesn't like how many people are comfortable in XP). IE6 and older versions are over 10 years old (hence their numerous rendering issues), yet they have a frightful share of the market. Probably has to do with the fact that IE6 came with XP. Here's how you can get IE's version: http://www.mkyong.com/javascript/how-to-de...ing-javascript/However, this uses the Navigator object, which is discouraged. There are many other ways to target certain IE versions.
  22. Fmdpa

    TimeZone set's?

    That depends upon whether their browser's time is set accurately.
  23. Is there a relatively easy way I could use, say, Presto to create a web page screenshot service?
  24. As you've probably seen lately, getting a preview image of a remote web page is becoming popular in web applications these days (e.g., Google search results and Opera speed dial). How could I build an application that does this on its own (provided with a valid url)?
  25. Ok, I think I see what you mean. When I resize this forum page, the text contracts. But it scrolls on my website, instead. Hmm. I don't know how I'd do that. I could make the container div 70% wide, but I don't want it to fill 70% of the screen. That's probably the only option to prevent the text from overflowing the screen in the X direction, though. I'll weigh my options.
×
×
  • Create New...