How to create header and footer using angular material - header

I am trying to create header and footer using angular material, can anyone please guide me how to do this or please share me any examples to design this.
Html
<mat-toolbar color="primary">
<span>Header</span>
</mat-toolbar>
<mat-card>#Copyright2019</mat-card>
Css
.mat-card{
color:white;
background-color: #303F9F;
border-radius: 0px;
text-align:center;
font-size: 20px;
}
.mat-toolbar{
margin-bottom:875px;
}
I have created header and footer. I have used margin-bottom to maintain gap between header and footer. Please find the below link to view screenshot.
https://imagizer.imageshack.com/img923/5535/XThUEX.png
Is there any other way to get responsive header and footer using angular6 material.

Related

How do I add an image to the ''buttons'' on the header on my page?

Is there a way where I could change the normal plain buttons on the header like this one? (Image bellow) I have the debut theme and working on Shopify
image
Add this code into your store css file and change class name where you want to apply image on button. Also you have to add button image into your store setting=> files
After that you have to copy image path and put into background-image ="change here image " in css code
<input type="submit" class="button">
button {
background-image: url(https://cdn.shopify.com/s/files/1/1023/3903/files/Capture12345.png?v=1652449658);
background-repeat: no-repeat;
background-size: cover;
}
you can just simply add background:url('image-url') on button
{
background: url('image-url');
background-position: center;
background-color: transparent;
}

theme custom component in element-ui

I have actually been pluggin away at this for sometime. I realize the concept is probably alot easier than what im getting but I just cannot for the life of me figure this out.
For a code example of what im trying to do. Using the below code
https://github.com/PanJiaChen/vue-element-admin/blob/master/src/layout/components/Navbar.vue
https://github.com/PanJiaChen/custom-element-theme
There is a scoped style for the navbar
<style lang="scss" scoped>
.navbar {
height: 50px;
overflow: hidden;
position: relative;
background: #333;
box-shadow: 0 1px 4px rgba(0,21,41,.08);
I am trying to use the element-ui theme generation tool to override the background colors. I have been able to get all the colors to correctly switch with a toggle setting the color white like so.
$--color-white: #333333 !default;
This correctly changes the background of elements to a charcoal type color.
Now the navbar has a hard coded value of white, yet even tho I remove that I still cannot get it to change color? How do I target that navbar. Or am I just totally off the mark and doing it wrong. I am new to vue and element-ui just to be upfront.

How to put text at the end of the input field with bootstrap 3

I want view plans text in input field right side how can I able to do that with bootstrap and CSS. view plans text is <a> tag and I am new to this bootstrap.
I just want to use the bootstrap to develop this input field is there any better way to do that?
I don't believe there's anything native to do this in Bootstrap. You're probably best off rolling your own solution.
Using <span>'s for the 'View Plans' text and then positioning them with CSS should get you what you need.
a.viewplans{
cursor: pointer;
position: absolute;
padding: 6px 20px;
right: 0px;
top: 0;
}

Bootstrap: is it possible to add title block in html/css code?

I'm using a CMS theme that contains all of Bootstrap 3. Is it possible to add a title block manually in HTML/CSS? I'm not sure if that's the block's official name... it's the purple full-width block containing the text:
CSS
Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system.
in the following link (for example):
http://getbootstrap.com/css/
This title block is built into my theme and is available based on the design for the page I select.
But I was wondering if this block is available separately from Bootstrap, like a Navbar, panel, well, etc. component, that I can just include some HTML/CSS code and have it appear in the body of a page, for example.
No it's not in bootstrap but it's pretty easy to grab the style and use it anywhere:
.bs-docs-header {
font-size: 24px;
padding-bottom: 60px;
padding-top: 60px;
text-align: left;
}
.bs-docs-masthead, .bs-docs-header {
background-color: #6F5499;
background-image: linear-gradient(to bottom, #563D7C 0px, #6F5499 100%);
background-repeat: repeat-x;
color: #CDBFE3;
padding: 30px 15px;
position: relative;
text-align: center;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
check this jsfiddle
If you look at their source, they are using a stylesheet called docs.min.css, they have defined the background in here. Other then that it is just a simple <div class="container"><!--title and subtitle here-->. So the answer is a yes and a no. You can, of course, use containers seperately from your CMS when using bootstrap, but the background will not be available unless you strip it from the getbootstrap.com source.
Edit
If you see their styles, they are using this code in their docs.min.css:
#media (min-width: 768px)
.bs-docs-header h1 {
font-size: 60px;
line-height: 1;
}
}
This means, when the width of your window is above 768 pixels, it gives the h1 a font-size of 60px. When you fall under it, this code is ignored and the default bootstrap font-size is being applied.
Edit 2
To get a background-color behind it, don't apply the background color to the .container. wrap a div around it without a width value. The container width is not full width, so if you apply a background to it, its only behind the container that is centered.
Edit 3
A simple HTML structure would be something like this (you still have to include all bootstrap styles and default html tags etc.
<html>
<body>
<div id="bgColorDiv">
<div class="container">
<h1>My title</h1>
<p>Paragraph below the title</p>
</div>
</div>
</body>
</html>

Why doesn't a div background image work with minified CSS?

I use MVC4 and minifying my CSS files, but a div tag that have a background image isn't showing the image in release mode. When I inspect the page with firebug, it says "Failed to load image..."
It works in debug mode, but not in release mode.
What is wrong with my div background images?
The physical path on my project is "\Content\themes\default\images\" and the CSS looks like this:
.headerlogo {
background-image: url('images/logo.png');
background-repeat: no-repeat;
background-size: auto auto;
height: 28px;
width: 127px;
margin-top: 25px;
}
I tested the following:
background-image: url("themes/default/minified/images/logo.png");
It works, but if you create a sample MVC4 internet application and look at it's CSS, the image address is:
url(images/ui-bg_flat_0_aaaaaa_40x100.png)
Why doesn't this work for me?