1

I am trying to use metro ui's button but it wont work.I think i have provided all the scripts and styles needed.I am new,Please help.

This is what i have done so far.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="metro.aspx.cs" Inherits="MetroWf.metro" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/metro-bootstrap.css" rel="stylesheet" />
    <script src="Scripts/jquery-2.2.1.js"></script>
    <script src="js/metro.min.js"></script>
    <script src="js/metro/metro-button-set.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>

        <button class="default" > helo </button>

    </div>
    </form>
</body>
</html>

It gives me a simple button.


Also i ma using vs13 so jquery already exist in my project.Does its presence makes difference in using metro.
And can i use metro and bootstrap side by side.I mean do the class name in them match and bring conflict.

edit This is what i get no matter which class i use be it default or danger.

enter image description here

4
  • What error do you get? Commented Sep 24, 2014 at 9:12
  • I get no error but it display the normal button.I mean using the class default or danger brings no change. Commented Sep 24, 2014 at 9:16
  • Shouldn't is be class="btn btn-default"? Commented Sep 24, 2014 at 9:31
  • I think that would be for bootstrap not metro any way i tried and nothing changed Commented Sep 24, 2014 at 9:37

1 Answer 1

2

You're missing the metro class at the <body> So if you change it to <body class="metro"> it should work. I have tested it on my local machine and it works like a gem. You can also refer to Metro UI CSS

Sign up to request clarification or add additional context in comments.

5 Comments

well it worked thanks.I tried to implement the sidebar of Metro-ui according to http://metroui.org.ua/sidebar.html,the output goes well but the drop down wont function.Can u help?
When you say it doesn't function do you mean when you click on the Sub Menu it doesn't expand?
Yup thats the problem.
i have furthem more some subquestion in the above quesion.If you know can u please clearify me.
As far as I'm aware they will conflict with each other so you'll have to choose one of them. You can also refer to this question Bootstrap and metro ui css javascript conflict

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.