Cadilac
Cadilac

Reputation: 1100

Strange behavior of html

I don't know why but when i have html i this order:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <div id="header" style="width: 1020px; height: 50px; vertical-align: sub; margin: 0 auto; text-align: left; background-color: white;">    
        {% if user.is_authenticated %}
            <span><a class="header_urls"  href="{{ URL }}/accounts/profile/">Profile</a>&nbsp;&nbsp;&nbsp;</span>
            <span style="float: left; color: blue; vertical-align: sub"><a class="header_urls" href="{{ URL }}/blog/">Blog</a>&nbsp;&nbsp;&nbsp;</span>
            <span style="float: left; color: blue; vertical-align: sub"><a class="header_urls" href="{{ URL }}/gallery/newest/1">Something</a>&nbsp;&nbsp;&nbsp;</span>

        {% endif %}
    </div>
</html>

Outpu is: Blog, Somthing, Profile. and in chrome code spectrator code is in this order, it display this things in other order. Why could it be?

Upvotes: 0

Views: 57

Answers (1)

Guard
Guard

Reputation: 6955

If the items are in different order you probably have float: right on them

Upvotes: 3

Related Questions