Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32
  1. #11

    Default

    Jackboy, it's not very hard to use condcoms (conditional comments) to import another sheetstyle to hack it to Internet Explorer 6, 7, or what ever version. As for your layout, I believe you should invest in using indentation it allows your code to be easier read by others and yourself later down the track. Also you're using class's where you're only using it once such example includes the banner, container etc. That is all.

  2. #12
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Iszak View Post
    Jackboy, it's not very hard to use condcoms (conditional comments) to import another sheetstyle to hack it to Internet Explorer 6, 7, or what ever version. As for your layout, I believe you should invest in using indentation it allows your code to be easier read by others and yourself later down the track. Also you're using class's where you're only using it once such example includes the banner, container etc. That is all.
    You need to indent your replies jks

    I have used conditional comments, thats why i said is there a way to support ie 6 without using them..... THANKS

    Ok next time i will indent it, or i will edit it later

    Yes i am using classes when im only using it once.... I could perhaps use id but whats the difference in the result..

  3. #13

    Default

    The purpose of ID's are as follows;
    • As a style sheet selector
    • As a target anchor for hypertext links
    • As a means to reference a particular element from a script
    • As the name of a declared object element
    • For general purpose processing by user agents (e.g. for identifying fields when extracting data from HTML pages into a database, translating HTML documents into other formats, etc.


    Where as classes are used for the following reasons.
    • As a style sheet selector (when an author wishes to assign style information to a set of elements)
    • For general purpose processing by user agents.


    Reference: http://www.w3.org/TR/REC-html40/stru...l.html#h-7.5.2

  4. #14
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Yes i acknowledge your point.

    But the result is exactly the same...

    And i will use id in the future

  5. #15
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    that's funny, one of the first layouts that I coded to learn with was that exact layout off habbo ring Well done.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  6. #16
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Heh.

    Im not bad, but im finding it hard to make my code work in all browsers atm.

  7. #17
    Join Date
    Mar 2007
    Posts
    1,691
    Tokens
    1,025

    Latest Awards:

    Default

    Only one thing that hasn't been mentioned that your should look into. When coding CSS always try and use families so for example:
    Code:
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: normal;
    Can be simplified to:
    Code:
    font: 11px normal normal Verdana, Arial, Helvetica, sans-serif;

  8. #18
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    Quote Originally Posted by Jackboy View Post
    You need to indent your replies jks

    I have used conditional comments, thats why i said is there a way to support ie 6 without using them..... THANKS

    Ok next time i will indent it, or i will edit it later

    Yes i am using classes when im only using it once.... I could perhaps use id but whats the difference in the result..
    why not use them again?

    for ie7 you use:

    Code:
     <!--[if IE 7]>
    <link href="ie7.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    for ie6 you use:

    Code:
     <!--[if IE 6]>
    <link href="ie6.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    hope that's what you were looking for
    +.net - omg it's coming o_o

  9. #19
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Awfy View Post
    Only one thing that hasn't been mentioned that your should look into. When coding CSS always try and use families so for example:
    Code:
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: normal;
    Can be simplified to:
    Code:
    font: 11px normal normal Verdana, Arial, Helvetica, sans-serif;
    Ok thanks

    Quote Originally Posted by HabbDance View Post
    why not use them again?

    for ie7 you use:

    Code:
     <!--[if IE 7]>
    <link href="ie7.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    for ie6 you use:

    Code:
     <!--[if IE 6]>
    <link href="ie6.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    hope that's what you were looking for
    Cheers for trying to be helpful but i had already used them before as i stated. I understand how they work and the syntax of them.

    But i wanted to know if theres a way of supporting IE6 WITHOUT conditional if statements.

    Because apparantly using them is nooby? :S

    EDIT: JUST LOOKED AT FACEBOOK SOURCE CODE. THEY USE CONDITIONAL IFS LOL

  10. #20
    Join Date
    Mar 2007
    Posts
    1,691
    Tokens
    1,025

    Latest Awards:

    Default

    Conditional IF Statements are sometime nessacary as are iFrames. Just because you're using a certain tag in your code doesn't make it nooby, it's how you use it. iFrames are infact extermely handy for working with external pages that you wish to manipulate. I know probably all the "i'm leetz at html" coders will totally disagree but what can you do when they're stuck in their own little worlds?

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

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