• Resolved AdmiralGanja

    (@admiralganja)


    Hi,

    I have a very anoying problem. I want a zero margin on top but this is impossible since my template for some reason is adding 2 questionmarks before my HTML tag.

    ??<HTML>

    Is it the index.php file that is incorrect or does my initiating “get_header();” function do something funkey!?

    I have tried to convert the index.php to UTF-8 and ANSI as well but witout any result. Please Please help me resolve this!

    Thank you in advance…

    /Jesper

Viewing 5 replies - 1 through 5 (of 5 total)
  • paste the contents of your header.php file.

    Thread Starter AdmiralGanja

    (@admiralganja)

    *EDITED*

    I have cleaned my code now… Look at the below, still I get a space between body top, and the beginning of wrapper. I cant understand why!

    Please help… thanks/Jesper

    index.php
    <?php include(TEMPLATEPATH . "/header.php");?>

    header.php

    <html><head><link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /></head><body><div id="wrapper"></div></body></html>

    Style:

    body {
    	border: 1px green solid;
    	}
    #wrapper {
    	border: 1px solid red;
    }

    Get rid of <!-- Start-Header.php -->. Never put anything before the DOCTYPE.

    Thread Starter AdmiralGanja

    (@admiralganja)

    In PHP/WordPress (index.php) this code generates a space between the borders on the top, in a simple htm file, it only renders two boxes with no height and no white space! Why is this? WordPress must be putting some bas stuff in my code? In a binary reader I read:
    ???<html><head><style type=”text/css”>

    Some kind of strange code in the beginning that wordpress is adding,

    <html><head></head><body style="border: 1px solid green"><div style="border: 1px solid red"></div></body></html>

    Thread Starter AdmiralGanja

    (@admiralganja)

    Arghhhh! Stupid!! It was Notepad++ who was set to encode in UTF-8 which I thought was right… But really it should have been UTF-8 without BOF… ARGH!!!!!!!!! 2 Days !!!!!!! =)

    Thanks anyway

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Double question marks before HTML-tag.’ is closed to new replies.