Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Div inside Head?

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #36890
    Anenth
    Participant

    Is there any problem if i make a div or header inside the head tag?

    #97655
    Senff
    Participant

    Yes, you should place that stuff in the BODY tag.

    #97695
    dfogge
    Participant

    not asking to be rude, but why would you want to do that @Anenth?

    #97742
    Mottie
    Member

    I just tried it, and it appears that most modern browsers will render those displayed tags in the body of the page anyway.

    I just wouldn’t do it because first off, the HTML would not validate and secondly there may be some HTML guru out there that’ll send rapid squirrels to invade and reprogram your computer to fix it. I’m not saying it’ll be me… I don’t have any extra squirrels handy.

    #97749
    Anenth
    Participant

    Thanks a lot!

    #97797
    wolfcry911
    Participant

    but you can’t place a div inside the head element and have valid code – only metadata is allowed

    #134315
    ravikiran
    Member

    i am facing an issue in IE borwser please help for below issue

    http://www.cabelas.com/browse.cmd?categoryId=112249080&WTz_l=SBC%3Bcat104796180%3Bcat112248180
    when hitting above link i was getting cufon is undefind and $.url is null or undefined

    below i have attahced the code

    error is showing here in below js file :- Cufon.replace( this.selector, this.opts );

    we are adding cufon.js file and font1.font.js file .

    when i am seeing in view source code for the above link cufon.js is not added in jsp page

    but in my jsp code is like below how to add please suggest me from here they are getting how they are added cufon.replacemnt.js and jquery.js nad jquery.js file inside div tag in head section how add please suggest me

    i have checked my code i didnot find any where could you please check and let me know u have any ideas

    (function() {

    lib.fonts = window.lib.fonts = {
    font1 : {
    fontFamily : “HelveticaNeue”,
    src : “/js/extensions/cufonReplacement/font1.font.js”
    }
    };

    lib.cufonReplacement = window.lib.cufonReplacement = {
    replacements : {
    replacement1 : {
    selector : “.cabelasFont1”,
    opts : {
    fontFamily : lib.fonts.font1.fontFamily
    //separate : “none”
    }

    }

    },
    func : {
    loadFonts : function(settings) {
    var settings = $.extend({
    fonts : [],
    allFonts : false
    }, settings);

    /* Add all fonts if specified */
    if( settings.allFonts )
    { settings.fonts = lib.fonts; }
    /*


    */

    // Load the font js file
    $.each( settings.fonts, function() {
    document.write(‘‘);
    });

    },
    doReplacements : function(settings) {
    var settings = $.extend({
    replacements : [],
    allReplacements : false,
    isRefresh : false
    }, settings);

    if( settings.allReplacements )
    { settings.replacements = lib.cufonReplacement.replacements; }

    if( !settings.isRefresh )
    {

    $.each(settings.replacements, function() {
    Cufon.replace( this.selector, this.opts );
    });
    }
    else
    {
    $.each(settings.replacements, function() {
    Cufon.refresh( this.selector );
    });
    }

    }
    }
    };

    })();

    #134316
    chrisburton
    Participant

    All that JS to add Helvetica?

    #134338
    Kitty Giraudel
    Participant

    What’s the connection with the topic anyway?

    #134342
    Paulie_D
    Member

    None…it’s an entirely different subject.


    @ravikiran
    I would suggest that you start a new topic with your issue.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘CSS’ is closed to new topics and replies.