Skip to content

Instantly share code, notes, and snippets.

@jsphkhan
Created June 13, 2014 12:09
Show Gist options
  • Save jsphkhan/50dbbe857666d885ecfb to your computer and use it in GitHub Desktop.
Save jsphkhan/50dbbe857666d885ecfb to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#my_element {
left: 0px;
top: 0px;
position: absolute;
width: 100%;
height: 100%;
}
#custom_element {
left: 50px;
top: 20px;
position: absolute;
}
</style>
<my-element id="my_element"></my-element>
<custom-element name="Ayaan" color="blue" id="custom_element">
</custom-element>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment