I hate HTML

Your problem is probably due to you using html for layout... html hasnt been used for layout in years. Nowadays you gotta use css *with html. Once the two are combined you can do cool things like

#container{display:table;}
#container p{display:table-cell; height:100px; vertical-align:middle; text-align:center;}

<div id="container">
<p>Text/images etc in the center...</p>
</div>

And all the anger and hatred can melt away - as long as you stay away from html5 and css3 for the next 2 years, html 4 works, css2 works as well, most of the time - things go wrong in IE... made by the same company responsible for silverlight... okay, you should probably hold onto a little bit of that anger and hatred.
 
Your problem is probably due to you using html for layout... html hasnt been used for layout in years. Nowadays you gotta use css *with html. Once the two are combined you can do cool things like

#container{display:table;}
#container p{display:table-cell; height:100px; vertical-align:middle; text-align:center;}

<div id="container">
<p>Text/images etc in the center...</p>
</div>

And all the anger and hatred can melt away - as long as you stay away from html5 and css3 for the next 2 years, html 4 works, css2 works as well, most of the time - things go wrong in IE... made by the same company responsible for silverlight... okay, you should probably hold onto a little bit of that anger and hatred.
Sorry, I didn't mention in the original post, but I was referring to HTML and CSS. In my mind they become a single entity, just because they aren't ever used separately anymore.
I guess it all just comes down to personal opinion. I would be interested to discuss this again once C++ and C# coders have tried out some Win8 coding in a year or two.
 
HTML is not a difficult language, it's super easy, when you know how to use it properly with css and javascript, you can do pretty amazing things with it.

Don't jump into the deep end, first understand the basics and then move on.
 
You asked for it ->YOU SUCK!!!
Flex rules mwhahaha ;)

On a more serious note, I hate HTML as well and HTML 5 , meh
The dominant browsers are already split on some of the features thereof, not to mention the mobile browsers.
What are the chances of it not going the HTML4 route of IE vs chrome vs mozilla and now vs iOS vs android vs x?
wiki
 
Ok so here we're just comparing the syntax for the layouts right? Well both share similar syntax. In terms of Windows 8 Development I think XAML > HTML5 if you're coding with C++ or C#. But I fail to see the major difference. Ok granted. Rolling out tables in XAML is less cumbersome, but even in HTML with a bit of PHP/JS know-how it really isn't a problem. But again, for dynamic web based apps XAML does have a bit faster and easier rollout

And on the topic of centering a div tag.

.center{
margin: auto;
}

should only be used if !DOCTYPE hasn't been used otherwise IE 8 and earlier will b***h at you.

.center{
margin-left: auto;
margin-right: auto;
}

Is somewhat better. Although vertical alignment is a nightmare thanks to IE. But even then with the use of CSS and JS you can essentially strip out all the layout from your HTML and almost create a StackPanel type of scenario. Combine HTML/CSS with JS/JQuery or an HTML5 boilerplate and you can do just about anything really. I think it's just easier with XAML since you don't have to be proficient in 3 different languages to do advanced layouts :P And in terms of Windows 8 development if you're going to develop in C# or C++ I'd definitely pick XAML. But otherwise I'll stick to the old HTML/CSS/JS/PHP work horse combination.

Plus I think you should be able to create websites using XAML if you're willing to write a parser for it. But then again I'd just stick to HTML since the differences in flexibility between XAML and HTML are a wee bit too broad

On a more serious note, I hate HTML as well and HTML 5 , meh
The dominant browsers are already split on some of the features thereof, not to mention the mobile browsers.
What are the chances of it not going the HTML4 route of IE vs chrome vs mozilla and now vs iOS vs android vs x?

Plus that is because those features haven't been standardised. HTML5 is still in it's infancy. With time as more features are standardised the rest will comply. We can only give it time and shouldn't write HTML5 off just yet.
 
Last edited:
@will - you need to specify a width in order for margin: auto; to work.

If you want a div to float center, the best way to do this for IE older versions is to have a main div, where all your site content will be and then the CSS code will look like this.

body {
text-align: center; /* this centers all content even divs to the center of the page, used for old browsers. */
}

.main {
text-align: left; /* this aligns all TEXT to the left, but not the divs */
width: 600px;
margin: auto;
}

This technique can be used for older browsers that do not understand the margin:auto technique
 
Ok so here we're just comparing the syntax for the layouts right? Well both share similar syntax. In terms of Windows 8 Development I think XAML > HTML5 if you're coding with C++ or C#. But I fail to see the major difference. Ok granted. Rolling out tables in XAML is less cumbersome, but even in HTML with a bit of PHP/JS know-how it really isn't a problem. But again, for dynamic web based apps XAML does have a bit faster and easier rollout

And on the topic of centering a div tag.

.center{
margin: auto;
}

should only be used if !DOCTYPE hasn't been used otherwise IE 8 and earlier will b***h at you.

.center{
margin-left: auto;
margin-right: auto;
}

Is somewhat better. Although vertical alignment is a nightmare thanks to IE. But even then with the use of CSS and JS you can essentially strip out all the layout from your HTML and almost create a StackPanel type of scenario. Combine HTML/CSS with JS/JQuery or an HTML5 boilerplate and you can do just about anything really. I think it's just easier with XAML since you don't have to be proficient in 3 different languages to do advanced layouts :P And in terms of Windows 8 development if you're going to develop in C# or C++ I'd definitely pick XAML. But otherwise I'll stick to the old HTML/CSS/JS/PHP work horse combination.

Plus I think you should be able to create websites using XAML if you're willing to write a parser for it. But then again I'd just stick to HTML since the differences in flexibility between XAML and HTML are a wee bit too broad



Plus that is because those features haven't been standardised. HTML5 is still in it's infancy. With time as more features are standardised the rest will comply. We can only give it time and shouldn't write HTML5 off just yet.
Thanks for the answer! The fact that we need to discuss how to do simple things like this reliably proves my point.
I guess I'm just wondering why you need to know 3 different languages to make one layout? Arguably anything you can make in html/css/js can also be make on plain XAML. I would be interested for someone to point out something that can't.
 
Im guessing you just know XAML better than you know HTML/CSS which is why you prefer it and dont know how to do that stuff properly.
Learn a language properly before batting it, that normally helps.
 
Im guessing you just know XAML better than you know HTML/CSS which is why you prefer it and dont know how to do that stuff properly.
Learn a language properly before batting it, that normally helps.

You realize it works in reverse too right?
 
Im guessing you just know XAML better than you know HTML/CSS which is why you prefer it and dont know how to do that stuff properly.
Learn a language properly before batting it, that normally helps.

No, a lot of people share his sentiment about the ease with which you can create dynamic layouts in XAML as opposed to HTML. Been doing some reading up on the topic. XAML shares a lot of similarities with HTML and XML by the looks of it. One thing I like about XAML is the way you can set up tables as opposed to HTML

HTML Version:
HTML:
<table>
    <tr>
        <td>
            Heading1
        </td>
        <td>
            Heading1
        </td>
        <td>
            Heading1
        </td>
    </tr>
    <tr>
        <td>
            Data
        </td>
        <td>
            Data
        </td>
        <td>
            Heading1
        </td>
    </tr>
</table>

and this can all be nicely decorated using CSS with a combination of class and id definitions.

XAML Version:

http://msdn.microsoft.com/en-us/library/ms750416.aspx /*Too lazy to type it all out :P*/

But upon further investigation I came across this. Still trying to verify this but things are going a wee bit slow on my side :P
 
Guys I think HTML is much friendy compared 2 Javalanguage...I mean if u using dreamweaver is gonna be much simpler am enjoying HTML
 
HTML is da most simplest programming language on earth unlike java,c++ etc, I realy recoment HTML
 
<Html><head><title></title>
</head>
<Body>
<P><b><I>Phillander</i></b> is a genius</p>
</body>
</html>
Run it u ill see
 
<Html><head><title></title>
</head>
<Body>
<P><b><I>Phillander</i></b> is a genius</p>
</body>
</html>
Run it u ill see
:) Anyone that need to run that to "see", have a long way to go.
 
Top
Sign up to the MyBroadband newsletter
X