Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    New Coder
    Join Date
    Mar 2013
    Posts
    63
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Try using the html5 IE shiv

    HTML 5 may be the latest and greatest technology, but some browsers don’t have native support for the new semantic elements.

    The problematic A-grade browsers include IE 8 and below, Firefox 2, and Camino 1 (these last two browsers both use the Gecko rendering engine, which is why they’re both affected).

    Quite simply, IE doesn’t even see HTML 5 elements, much less style them.

    Try enabling HTML% with his shiv, place this in the head of your document

    Code:
    <!--[if lt IE 9]>
                <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
            <![endif]-->
    It should make the page look the same in firefox, chrome, opera, Internet Explorer and so on.

  2. #17
    New Coder
    Join Date
    Mar 2013
    Posts
    63
    Thanks
    2
    Thanked 2 Times in 2 Posts
    May I also suggest centering the elements? since the first two are more to the left?

    Try using <center>Content goes here</center> or <p align="center">content goes here</p> or even

    css
    .wrapper {
    float:center;
    }

    Html
    <div class="wrapper">
    Content goes here
    </div>

    You may also be able to use
    <div align="center">
    content goes here
    </div>

    This will make all the images be centered the same and will not push some more to the left, of course you want to make sure that this is inside your container or table, or whatever you are using so that it doesn't center the images in the center of the page but rather your table or container that you are using.



    I'm not an expert but i have done webpages in the past so I hope this will help you and whomever else is reading this, I'm sure others may have a beteer solution, just these ideas are what I think could work for you.

    Frankie and whoever else is reading correct me if I am wrong.
    Last edited by chakanevil; 03-12-2013 at 12:04 AM.

  3. #18
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,480
    Thanks
    6
    Thanked 981 Times in 954 Posts
    OK, that’s enough. Yet another one of your irrelevant and off-topic posts (sorry, we were getting a little off-topic in this thread, too, but yours isn’t just off-topic, you’re even providing plain wrong information). The center element and the align attribute have long been deprecated and are especially not present in your beloved HTML 5. Do you actually know what HTML 5 is and why you are using it? Or are you just following the latest buzz because you have heard someone talk about it?

    If you continue to put random and off-topic recommendations about HTML5shiv or whatever without actually reading and understanding the questions then you won’t be around here for very long, I promise.

  4. #19
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I have just replaced everything with divs instead of lists as I was told. Now I need to know how to center the boxes. the text-align tag doesn't seem to do its job, neither does margin-left/right: auto.

    Also if something isn't up to web standards, can you please tell me what i've done wrong instead of acting like i've created a disaster? I've never said that I'm a well educated website programmer, I'm here to learn.
    Last edited by peterspliid; 03-12-2013 at 03:18 AM.

  5. #20
    New Coder
    Join Date
    Mar 2013
    Posts
    63
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Exclamation

    Quote Originally Posted by VIPStephan View Post
    OK, thatís enough. Yet another one of your irrelevant and off-topic posts (sorry, we were getting a little off-topic in this thread, too, but yours isnít just off-topic, youíre even providing plain wrong information). The center element and the align attribute have long been deprecated and are especially not present in your beloved HTML 5. Do you actually know what HTML 5 is and why you are using it? Or are you just following the latest buzz because you have heard someone talk about it?

    If you continue to put random and off-topic recommendations about HTML5shiv or whatever without actually reading and understanding the questions then you wonít be around here for very long, I promise.
    Why do you have to be so brash, I never claimed to be an expert, I just know what works for me, i though maybe it would work for this guy as well, do web standards even matter so long as the page loads and functions without any errors?

  6. #21
    New Coder
    Join Date
    Mar 2013
    Posts
    63
    Thanks
    2
    Thanked 2 Times in 2 Posts
    and yes i know how to do some programming with both php/html/ and css, i am
    still learning js

    I know a lot of HTML, and some css/php, but never claimed to be an expert or master, i was merely suggesting a way that could be a fix, no need to be so rude to new members.

  7. #22
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,471
    Thanks
    0
    Thanked 634 Times in 624 Posts
    Quote Originally Posted by Frankie View Post
    Funny. Even the latest browsers process javascript Š la W3 Schools perfectly well. I thought that the 21th century is already some 13 years old? That's a lifetime in web development.
    Yes - unfortunately the browsers still support such antiquated ways of coding because it would break all the 13 year + old web pages if they didn't (also all the web pages still being written by people being taught how to write 20th Century code rather than modern JavaScript by antiquated sites such as w3schools).

    Beginners who copy such old code end up asking most of the beginner questions on forums such as this one when they have multiple scripts that clash with one another and all sorts of other problems that don't occur when you use modern coding practices.

    The w3schools site was an excellent site when it was first written. Unfortunately the number of topics covered means that the two guys who own that site would need to have been working at least 50 hours a day each on updating the site to take into account all the changes that have occurred over the years. In a way the popularity of that antiquated site is one of the reasons why browsers still need to support code that should have been dropped at least eight years ago. Most of the w3schools JavaScript pages have Netscape 4 as their main target browser as it was the most popular browse when those pages were written and it was the last browser to NOT support all the modern far better ways of writing JavaScript.

    To be able to dump all the obsolete JavaScript which with any other language would have been dumped many years ago beginners need to be taught the correct way to write JavaScript and not the 20th century way that sites such as w3schools teach.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  8. #23
    Regular Coder
    Join Date
    Sep 2011
    Posts
    327
    Thanks
    3
    Thanked 35 Times in 35 Posts
    Quote Originally Posted by felgall View Post
    The w3schools site was an excellent site when it was first written. Unfortunately the number of topics covered means that the two guys who own that site would need to have been working at least 50 hours a day each on updating the site to take into account all the changes that have occurred over the years.
    I would think that things haven't changed. What you are writing in Bad Bits on your site was true 20 years ago already. Its just a matter of choice whether one wants to be a fundamentalist or not. Browsers don't care.

    Also, note that you are only talking about javascript. Seemingly, you cannot come up with any substantial evidence that W3 Schools is poor when it comes to HTML/CSS.

    Finally, you are using way too much text and way too few examples for your site to come anywhere near W3 Schools in terms of didactics.
    Last edited by Frankie; 03-12-2013 at 07:58 AM.
    Frank

    How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.

  9. #24
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,480
    Thanks
    6
    Thanked 981 Times in 954 Posts
    OK, I think everything has been said about W3Schools. Now let’s stay on topic and solve the OP’s problem, OK?

  10. Users who have thanked VIPStephan for this post:

    peterspliid (03-12-2013)


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •