Home
Search results “Set body style in html”
How to style the body tag and apply a background in HTML
 
02:43
style your body tag via CSS. Never suffer distorted background images again by learning how to properly use a background image via the ‘background-image’ and ‘background-size’ CSS rules. You’re also going to see exactly how to set font colors via the ‘color’ rule, font sizes via the ‘font-size’ rule, and text line spacing via the ‘line-height’ rule. Want to check out the full course? Go to www.hackstack.io for this and many others bite-sized tutorials that will help you do more, faster, with less.
Views: 873 HackStack.io
how to add background image in html
 
04:36
Hey guys, my book CSS Visual Dictionary – https://www.amazon.com/dp/1983065633 Explains all of this with visual 150+ visual diagrams. (For more detail and "Look Inside" on Amazon go there) How to add background image to your HTML page? In this tutorial I'll show you an example source code that changes your background image to anything you want. Just type in a URL address into inline or external CSS like: <body style ="background: url('here.jpg')"> The single quotes around 'here.jpg' are not required, and if your style is already wrapped in double quotes, you cannot use double quotes around "here.jpg" or it will create an error. Here are a few keyword phrases that might help get this tutorial found on YouTube search. Thanks for watching! html background image tutorial html background image full screen html background image no repeat html background image no size html background image tutorial using notepad html background image tutorial resize html how to add background image to html body inserting background image in html how to fit background image in html adding background image in html
Views: 97388 JavaScript Teacher
Style the HTML Body Element, freeCodeCamp review, html & css, lesson 45
 
01:33
freeCodeCamp tutorial, review and help, in this challenge we learn that every html document has a body element. We prove this by selecting the body element within our style tag and giving it a black background
Views: 686 We Will Code
CSS - Upgrading HTML Tags with Style: Creating a Website Made Easy
 
20:00
Lesson on Upgrading HTML Tags to CSS Style from Udemy online course: Creating a Website Made Easy Full course description and 25% discount coupon: http://tharsishighlands.com/online-courses/creating-a-website-made-easy/ Transcript: In this lesson, we will take many of the basic HTML tags and use them as CSS element selectors to upgrade their style. In CSS, the HTML tags are called "elements." BODY First, we start with the [body] tag element (YouTube does not allow angle brackets in description). When you first set up your main CSS file, you typically want to establish the basics for your entire page. These can include, • background-color • background-image • default font-size, color and font-family All of these can be handled in the body element. For example, body { background-color: linen; background-image: url("pix/tree.jpg"); font-family: Vera, Arial, Helvetica, sans-serif; font-size: 15px; color: #24425C; } SELECTORS We've already seen a little about CSS syntax. For example, h1 { color: blue; } Each CSS style starts with a selector and is followed by one or more declarations within open and close braces — each declaration being a property-value pair: { property: value } Element selectors select all HTML tags of the same name. For instance, for the [p] tag, p { text-align: center; color: red; } [p]All paragraphs with only the p tag are centered and red. This is a demonstration of how the element selector works.[/p] The ID selector uses the ID attribute of an HTML element to select that specific element. ID is a unique identifier. On any one page, there can be only one of that ID. Also, the ID name cannot start with a numeral. For example, #first_heading { color: red; } [h1 id="first_heading"]This is the First Heading on the Page[/h1] The class selector selects all elements with a specific class attribute. .quote { border-style: solid; border-width: 1px; border-color: #880000; padding: 5px; font-size: 18px; font-style: italic; } Here, we see a class called "quote" which uses larger type, italics and a dark red border. Next, is the HTML which uses that class. [p class="quote"]"There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy."[/p] A class can be restricted to only one element type. For example, p.first { text-indent: 0px; } This can be helpful if all other paragraphs are given an indent. The first paragraph after a heading can be made flush left. We can also use more than one class at a time. For example, [p class="first quote"]"Houston, we have a problem..."[/p] We've already seen how selectors which share property values can be grouped. h1, h2, h3 { color: steelblue; } In the earlier lesson on the Head section, we learned how to link to an external style sheet — a file with sets of selectors and declarations. For internal CSS, you have the same selector-declaration combinations, but set within open and close [style] tags. [head] [style] body { background-color: darkslateblue; } [/style] [/head] And for inline CSS, you have the same selector-declaration combinations within a style attribute. [p style="text-indent: 50px; color: steelblue;"]This is important text.[/p] Multiple Styles Cascade into One CSS statements have a sequence of priority. The lowest priority of style is the browser defaults. Next are the external and internal style sheets in the head section. Sequence matters, so if you link to your external style sheet after the internal style declarations, the external CSS takes priority over the internal. Finally, the inline style declarations take the highest priority. For all style information that uses the same selectors, the highest priority replaces the lower priorities. For example, External: p { color: blue; text-indent: 30px; } Internal: p { color: green; } Inline: p { color: red; } The final style is: p { color: red; text-indent: 30px; } Background: The following properties control the background of HTML elements. • background-color • background-image • background-repeat • background-attachment • background-position Example: body { background-color: blue; } As we've already learned, colors can be specified, • As Hex — like "#00ffff" • As RGB — like "rgb(0,255,255)" • By name — like "aqua" We will learn more about colors and the new CSS3 color specification in a later lesson. Background Image: The default behavior of a background image is to repeat the image both vertically and horizontally in order to fill the entire background of the element with the selected picture. body { background-image: url("pix/sandbaked.gif"); } [...] In the next lesson, we talk about fonts, tables and links. Music: "Acid Jazz," "Darkness Speaks," and "Fanfare for Space" by Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 3.0 http://creativecommons.org/licenses/by/3.0/ Still: Clear Creek 5 by ImBooToo via Morguefile.com.
Views: 1421 Rod Martin, Jr.
HTML Introduction: Part 5, Style Tag
 
04:39
Hello and Welcome to another session on HTML series. We have covered quite a lot in past four sessions which you may want to check out. In the earlier sessions, we started from the beginning of, what is HTML, to different tags, and associated attributes to tags in details like, IMG tag and its attributes, for embedding images in HTML document. In this session, we will consider another such attribute common in some tags, that is style attribute. Please note that to have hands on experience, modify the code accordingly. The HTML Style Attribute is for setting different styles of an HTML element. To apply style on supported HTML element, write the HTML element and define the style property as the syntax shown. Syntax - <tagname style="property:value;"> The property defines, what style is to be set for the HTML element. The property is something which is called CSS property or cascading style sheet. CSS is used to define all the style properties of HTML document. The value in style attribute is a CSS value. Let’s learn more about the style attribute, properties and values. HTML Background Color The background-color property defines the background color for an HTML element. The syntax is to define property background color as shown with value as any color Syntax - <tagname style="background-color:value;"> This example sets the background color for a page to powderblue: Example <body style="background-color:powderblue;"> HTML Text Color The color property defines the text color for an HTML element The syntax is to define property color as shown with value as any color Syntax - <tagname style="color:value;"> This example sets the color as blue for the header and paragraph. Example <h1 style="color: blue;">This is a heading</h1> <p style="color: red;">This is a paragraph. </p> HTML Fonts The font-family property defines the font to be used for an HTML element. The syntax is to define property font family as shown with value as any color Syntax - <tagname style="font-family:value;"> This example sets font as verdana and courier. Example <h1 style="font-family:verdana;">This is a heading</h1> <p style="font-family:courier;">This is a paragraph.</p> HTML Text Size The font-size property defines the text size for an HTML element. The syntax is to define property font size as shown with value as any color The syntax is to define property font size as shown with value as size Syntax - <tagname style="font-size:value;"> This example sets the header font size to 3 times and paragraph font size to 160 percent. Example <h1 style="font-size:300%;">This is a heading</h1> <p style="font-size:160%;">This is a paragraph.</p> HTML Text Alignment The text-align property defines the horizontal text alignment for an HTML element. The syntax is to define property text alignment as shown with value as center, left, right Syntax - <tagname style="text-align:value;"> This example sets the text alignment as center. Example <h1 style="text-align:center;">Centered Heading</h1> <p style="text-align:center;">Centered paragraph.</p> Well Done! You have learned to Use the style attribute for styling HTML elements, Use background-color for background color, Use color for text colors, Use font-family for text fonts, Use font-size for text sizes, and Use text-align for text. To find out more, visit links in the description. Which topic you want us to cover next. Share your thoughts in the comment section. Like and subscribe for more videos. Source: https://www.w3schools.com/html/html_styles.asp Code ------------------------------------ <html> <head> <title>HTML Introduction - Part 5 - Style Attribute</title> </head> <body style="background-color:powderblue;"> <h1 style="color:blue;">This heading is in color blue by style tag.</h1> <p style="color:red;">This paragraph is in red color by style tag.</p> <h1 style="font-family:verdana;">This heading's font is verdana</h1> <p style="font-family:courier;">This paragraph font is courier.</p> <h1 style="font-size:300%;">This heading font size is 3 times the normal heading.</h1> <p style="font-size:160%;">This paragraph font size is 1.6 time the normal font size.</p> <h1 style="text-align:center;">This Heading is in center <h1> <p style="text-align:center;">This paragraph is in center.</p> </body> </html> My Blogs https://azblogs4u.blogspot.com/ https://atozcreations4u.wixsite.com/insights PACIFIC SUN by Nicolai Heidlas Music https://soundcloud.com/nicolai-heidlas Creative Commons — Attribution 3.0 Unported— CC BY 3.0 http://creativecommons.org/licenses/b... Music promoted by Audio Library https://youtu.be/kbqmEJTr3nU
Views: 71 LEARNITIUM
HTML video tutorial - 80 - html style tag
 
08:53
HTML - style tag: style tag is a paired tag. style tag must be written in head section. style tag is used to define styles for html elements or tags. style tag is used to write embedded styles. html document can have multiple style tags. style tag contains set of style rule declaration blocks. type attribute takes the value text/CSS. to indicate whatever we write within style tag is normal text or CSS code. ======================================================== Follow the link for next video: https://youtu.be/YwJgtVjG2pg Follow the link for previous video: https://youtu.be/bEH2ou5Pjp8 ========= For more benefits & Be up to date =================== Subscribe to the channel: https://www.youtube.com/chidrestechtu... Like the Facebook fan page: https://www.facebook.com/ManjunathChidre Visit to Chidre's Tech Tutorials website: http://www.chidrestechtutorials.com ========== HTML Questions & Answers ====================== 1. Which HTML tag is used to embed CSS styles in an HTML document? a. script tag b. style tag c. style selector c. none of the above Answer: b ========================================================
Views: 6509 Chidre'sTechTutorials
Html Style Attributes | Part - 07 | Html  tutorial for beginners | Tech Talk Tricks
 
05:57
Welcome to tech talk tricks and in this video, we'll learn about Html Text Formatting .So stay tuned and watch html style attributes. #TechTalkTricks #RanaSingh #Tech #Technology #hindi #tutorial #TutorialForBeginners #Html #HtmlTutorialForBeginners #MySmartSupport #Style So Watch: https://www.youtube.com/watch?v=EopTYckcgp4 At tech talk trick channel you will learn all kind of technology like language,tutorials and amazing computer tips and tricks. html style attribute list html style tag html inline style html style tag in body html font style text color html html font family html style class ************************************************** Follow Tech Talk Trick on Facebook https://www.facebook.com/techtalktricks ************************************************** Follow tech talk trick on Twitter https://twitter.com/tecktalktrick ************************************************** Follow Tech Talk Tricks on Instagram https://www.instagram.com/techtalktricks ************************************************** Subscribe tech talk tricks on YouTube https://www.youtube.com/techtalktricks *************************************************** 1.How to make your computer start up & shut down faster https://www.youtube.com/watch?v=3kSjizTn7MM 2.How To Trace Name/Address/Location Of UnKnown Number Easily https://www.youtube.com/watch?v=kyYfOP66l1Y 3.How to make webpage print friendly https://www.youtube.com/watch?v=YPR7JHA0Apk 4.How to Lock Folder Without any software https://www.youtube.com/watch?v=BhEduEM9pws 5.How to enable undo in gmail https://www.youtube.com/watch?v=g1fOwTQ3zJg 6.How To Recover All Deleted, Formatted, Damaged Files https://www.youtube.com/watch?v=fl3DX6RBoqo 7.How to make Bootable USB pendrive for Windows https://www.youtube.com/watch?v=IXJE859pxWg 8.How to Unlock Android Pattern or Pin Lock without losing data https://www.youtube.com/watch?v=yN4JnAo7SvU 9.how to track a cell phone location for free https://www.youtube.com/watch?v=0kCLyPJ8cM0 10.How to fix or repair pendrive using cmd https://www.youtube.com/watch?v=ny4VhM2TsWM 11.how to get wifi password of neighbour https://www.youtube.com/watch?v=LCFn6IjvnMM 12.How to Send an Email In Future https://www.youtube.com/watch?v=oo84GRHe5Vg 13.How To Setup Wifi Hotspot Without Any Software in Windows 10 https://www.youtube.com/watch?v=6Bzyvs44G50 14.how to download YouTube video without any software https://www.youtube.com/watch?v=RDfDGY3Be9Y 15.HOW TO SET SHUTDOWN TIMER IN WINDOWS OS (HINDI) https://www.youtube.com/watch?v=Vb5Ou7sc4uk 16.How To convert Word File (Any File Format) to PDF file (Any File Format) https://www.youtube.com/watch?v=Nd0YtV9MwqQ 17.How To Hide Drive of Computer Using Command Prompt (Hindi) https://www.youtube.com/watch?v=AddrPKRGdSk
Views: 590 Tech Talk Tricks
CSS how to: height and width
 
04:14
CSS video tutorial shows how to configure width and height on just about any HTML element. Overflow property to control the control how the content appears when it is too large. Min-width, min-height, max-width, max-height are available to specify a maximum and minimum if the content doesn't make the HTML element as large or small as you want them to be. All these CSS properties are important to control how the appearance or control the flow of your page. http://www.technoblogical.com/web-design/ Providing training since last Tuesday http://www.technoblogical.com Thanks for watching!
Views: 12136 Chris Walker
How to change the background colour of a webpage in HTML
 
03:12
Hello Guys! How are you doing? Hope all are fine.. In this video you will learn how to change the color of the background of a webpage in HTML. This can be done by two ways - the body bgcolor way , and the style way. Both ways are explained properly and shown. You can learn more such things by checking out our channel for more Tutorials of HTML. I hope you learnt a heck lot of things in this video.. It would be a great deal of support if you guys would Subscribe, Like, and Comment. You can also ask your doubts and get satisfying answers by our Experts. You can contact us at [email protected] or leave a message. You can also ask your questions on our site www.alphixia.weebly.com I sincerely Thank You for watching this and I hope that Alphixia has helped you. We will keep helping , as we think it is our religion to help people! Thanks! Nick - Co Owner
Views: 54206 Alphixia
HTML Tutorial - Banners And Body - Part 6
 
12:20
Hello everyone and welcome to my HTML Tutorial series. I'll be explaining the basic's of HTML (HTML5 to be precise) and creating a small website with them. We'll probably go into other things like CSS, JS, Jquery along the way too! If you enjoyed the video remember to leave a like and/or comment!
Views: 126 Zazea Games
How to Inject Custom HTML and CSS into an iFrame
 
14:22
Ever been to a site like JSBin, where you can write HTML, CSS, and JavaScript, and then see the results in a panel to the right? An iframe is how we can accomplish this task.
Views: 98492 Tuts+ Code
Tutorial HTML Bahasa Indonesia #4 styling pada  tag HTML
 
06:03
Html dan CSS merupakan bahasa wajib yang dikuasai oleh web programmer atau web design, untuk itu Tutorial HTML Bahasa Indonesia #4 styling pada tag HTML hadir untuk anda Blog http://www.pojokcode.com Follow https://twitter.com/pojokcodeid https://www.instagram.com/pojokcodeid https://www.facebook.com/pojokcodeid #pojokcode #providerofsoftwaresolutions styling html, styling html forms, styling html tables, styling html with css, styling html5 forms, styling html forms with css, styling html table css, styling html radio buttons, styling html select, styling html5 video controls, styling html tags, styling html dropdown, html style tutorial, html stylesheet, html styles, html style sheets, html style css, html stylesheet tutorial, html style background image, html style class, html style attribute, html style color, html style form, html style height vh, html style a button, html font style and color code, html border style, html button style, html table border style, style the html body element, html body style, css stylesheet in html, html cascading style sheets, font style html code, style css w html, div style html, html external style sheet, style en html, html font style, html style guide, style tag in html in hindi, how to style html with css, html hr style, style sheets in html in hindi, how to style html forms, html style links, html list style, html ul list style, html paragraph style, html style select, html table style, html text style, html style tag, html style video, html style z-index
Views: 34 Pojok Code
jQuery wrap elements
 
06:52
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-wrap-elements.html In this video we will discuss how to wrap and unwrap elements The following jquery methods are used to wrap and unwrap elements. Since these methods modify DOM, they belong to DOM manipulation category. wrap unwrap wrapAll wrapInner wrap - Wrap an HTML structure around each element in the set of matched elements. Consider the following HTML <div id="div1"> DIV 1 </div> <div id="div2"> DIV 2 </div> <div id="div3"> DIV 3 </div> The following line of code wraps each of the above div element with another div element. $('div').wrap('<div class="containerDiv"></div>'); So the HTML in the DOM would now look as shown below. To view the DOM HTML use the browser developer tools. <div class="containerDiv"> <div id="div1"> DIV 1 </div> </div> <div class="containerDiv"> <div id="div2"> DIV 2 </div> </div> <div class="containerDiv"> <div id="div3"> DIV 3 </div> </div> Example : <html> <head> <title></title> <style> .containerDiv { background-color:red; color:white; font-weight:bold; margin: 5px; } </style> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { alert($('div.containerDiv').length); $('div').wrap('<div class="containerDiv"></div>'); alert($('div.containerDiv').length); }); </script> </head> <body style="font-family:Arial"> <div id="div1"> DIV 1 </div> <div id="div2"> DIV 2 </div> <div id="div3"> DIV 3 </div> </body> </html> unwrap - Remove the parents of the set of matched elements from the DOM. Example : <html> <head> <title></title> <style> .containerDiv { background-color:red; color:white; font-weight:bold; margin: 5px; } </style> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { alert($('div.containerDiv').length); $('div').wrap('<div class="containerDiv"></div>'); alert($('div.containerDiv').length); $('div').unwrap(); alert($('div.containerDiv').length); }); </script> </head> <body style="font-family:Arial"> <div id="div1"> DIV 1 </div> <div id="div2"> DIV 2 </div> <div id="div3"> DIV 3 </div> </body> </html> wrapAll - Wrap an HTML structure around all elements in the set of matched elements. Consider the following HTML <div id="div1"> DIV 1 </div> <div id="div2"> DIV 2 </div> <div id="div3"> DIV 3 </div> The following line of code wraps all of the matching div element with another div element. $('div').wrapAll('<div class="containerDiv"></div>'); So the HTML in the DOM would now look as shown below. <div class="containerDiv"> <div id="div1"> DIV 1 </div><div id="div2"> DIV 2 </div><div id="div3"> DIV 3 </div> </div> wrapInner - Wrap an HTML structure around the content of each element in the set of matched elements. Consider the following HTML <div id="div1"> DIV 1 </div> <div id="div2"> DIV 2 </div> <div id="div3"> DIV 3 </div> The following line of code wraps each of the above div element content with another div element. $('div').wrapInner('<div class="containerDiv"></div>'); So the HTML in the DOM would now look as shown below. <div id="div1"> <div class="containerDiv"> DIV 1 </div> </div> <div id="div2"> <div class="containerDiv"> DIV 2 </div> </div> <div id="div3"> <div class="containerDiv"> DIV 3 </div> </div>
Views: 44438 kudvenkat
Full Width Background Image with Transparent Overlay
 
09:22
Learn React For Free On My Youtube Channel (2018)! https://danzuzevich.com/react-thumbnail-gallery/
Views: 81624 Dan Zuzevich
How to stretch and fix the background image in HTML
 
02:16
In this HTML tutorial you will learn, how to stretch the background image if the image is smaller than browsers window screen. You can fit the background image size using css property background-size:100% 100%. You will also learn how to fix the background image to stop its scrolling if the page size is greater than the windows screen.
Views: 50651 faisal nadeem
Basic CSS - Style the HTML Body Element - freeCodeCamp
 
01:43
In today's basic CSS tutorial, we style the HTML body element as part of the Free Code Camp curriculum. Enjoy!
Views: 27 programCity
Style tag in html | Part- 12 |  Html tutorial for beginners | Tech Talk Tricks
 
09:20
Welcome to tech talk tricks and in this video, we will learn about how we can styling with the help of inline, internal and external stylesheet.So stay tuned and watch style tag in html. #TechTalkTricks #RanaSingh #Tech #Technology #hindi #tutorial #TutorialForBeginners #Html #HtmlTutorialForBeginners #MySmartSupport #Style So Watch: https://www.youtube.com/watch?v=pfhLHiqHpyQ At tech talk trick channel you will learn all kind of technology like language,tutorials and amazing computer tips and tricks. html style attribute html inline style html style tag in body html style attribute list style type= text/css css tags list with examples styletag bags html font style ************************************************** Follow Tech Talk Trick on Facebook https://www.facebook.com/techtalktricks ************************************************** Follow tech talk trick on Twitter https://twitter.com/tecktalktrick ************************************************** Follow Tech Talk Tricks on Instagram https://www.instagram.com/techtalktricks ************************************************** Subscribe tech talk tricks on YouTube https://www.youtube.com/techtalktricks *************************************************** 1.How to make your computer start up & shutdown faster https://www.youtube.com/watch?v=3kSjizTn7MM 2.How To Trace Name/Address/Location Of UnKnown Number Easily https://www.youtube.com/watch?v=kyYfOP66l1Y 3.How to make webpage print friendly https://www.youtube.com/watch?v=YPR7JHA0Apk 4.How to Lock Folder Without any software https://www.youtube.com/watch?v=BhEduEM9pws 5.How to enable undo in gmail https://www.youtube.com/watch?v=g1fOwTQ3zJg 6.How To Recover All Deleted, Formatted, Damaged Files https://www.youtube.com/watch?v=fl3DX6RBoqo 7.How to make Bootable USB pendrive for Windows https://www.youtube.com/watch?v=IXJE859pxWg 8.How to Unlock Android Pattern or Pin Lock without losing data https://www.youtube.com/watch?v=yN4JnAo7SvU 9.how to track a cell phone location for free https://www.youtube.com/watch?v=0kCLyPJ8cM0 10.How to fix or repair pendrive using cmd https://www.youtube.com/watch?v=ny4VhM2TsWM 11.how to get wifi password of neighbour https://www.youtube.com/watch?v=LCFn6IjvnMM 12.How to Send an Email In Future https://www.youtube.com/watch?v=oo84GRHe5Vg 13.How To Setup Wifi Hotspot Without Any Software in Windows 10 https://www.youtube.com/watch?v=6Bzyvs44G50 14.how to download YouTube video without any software https://www.youtube.com/watch?v=RDfDGY3Be9Y 15.HOW TO SET SHUTDOWN TIMER IN WINDOWS OS (HINDI) https://www.youtube.com/watch?v=Vb5Ou7sc4uk 16.How To convert Word File (Any File Format) to PDF file (Any File Format) https://www.youtube.com/watch?v=Nd0YtV9MwqQ 17.How To Hide Drive of Computer Using Command Prompt (Hindi) https://www.youtube.com/watch?v=AddrPKRGdSk
Views: 513 Tech Talk Tricks
Html and Css Tutorial - 17 - How to add background image to html document
 
03:25
For all my tutorials go to: http://websofttutorials.com/ In this tutorial i will show you How to add background image to html document. and in this tutorial i will show you that how can we repeat background image horizontally and vertically and after that i will show you that how to set background position.
Views: 77925 websofttutorials
jQuery DOM manipulation methods
 
16:55
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-dom-manipulation-methods.html In this video we will discuss 1. What are jQuery DOM manipulation methods 2. How to set attribute values using jQuery attr() method 3. How to retrieve attribute values using jQuery attr() method 4. How to set multiple attribute values using jQuery attr() method 5. How to remove an attribute using jQuery removeAttr() method What are jQuery DOM manipulation methods jQuery DOM manipulation methods manipulate the DOM in some manner. The complete list of jQuery DOM manipulation methods can be found at the following link. http://api.jquery.com/category/manipulation/ jQuery attr method is used to set or retrieve attribute values of html elements. Retrieves the title attribute value of the first matching element $('div').attr('title') Example : In this example we have 2 DIV elements. Since attr() function retrieves only the attribute value of first matching element, we only get the title attribute value of the first DIV element. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { alert($('div').attr('title')); }); </script> </head> <body style="font-family:Arial"> <div id="div1" title="My DIV1"> DIV 1 </div> <div id="div2" title="My DIV2"> DIV 2 </div> </body> </html> To retrieve the title attribute value of all the matching elements, jQuery each() method can be used. <script type="text/javascript"> $(document).ready(function () { $('div').each(function () { alert($(this).attr('title')); }); }); </script> Sets the title attribute value of all the matching elements to "new div title" $('div').attr('title', 'new div title'); Example : If you want to set the same value for the title attribute of all the elements, then there is no need to loop thru each element. All the div elements in this case will have 'new div title' as the title attribute value. <script type="text/javascript"> $(document).ready(function () { // set the same title attribute value for all the DIV elements $('div').attr('title', 'new div title'); // Retrieve and alert the title attribute value of all DIV elements $('div').each(function () { alert($(this).attr('title')); }); }); </script> If you want to set a different value for the title attribute, then you may need to loop thru each element. <script type="text/javascript"> $(document).ready(function () { // sets a different title attribute value for each DIV element $('div').each(function (i) { $(this).attr('title', 'div ' + (i + 1) + ' title'); }); // Retrieve and alert the title attribute value of all DIV elements $('div').each(function () { alert($(this).attr('title')); }); }); </script> How to set multiple attribute values : Using a JSON object to set multiple attribute values <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { var config = { 'title': 'New Div Title', 'style': 'border:3px solid red;', 'name': 'My Div' }; $('div').attr(config); var result = ''; $('div').each(function () { result += 'title = ' + $(this).attr('title') + '<br/>'; result += 'style = ' + $(this).attr('style') + '<br/>'; result += 'name = ' + $(this).attr('name') + '<br/><br/>'; }); $('#resultSpan').html(result); }); </script> </head> <body style="font-family:Arial"> <div id="div1" title="My DIV1"> DIV 1 </div> <br /> <div id="div2" title="My DIV2"> DIV 2 </div> <br /> <span id="resultSpan"> </span> </body> </html> Instead of creating a separate JSON object (config) and then passing it to attr() method, you can create the JSON object inline. $('div').attr({ 'title': 'New Div Title', 'style': 'border:3px solid red;', 'name': 'My Div' });
Views: 65158 kudvenkat
HTML Website (Part 4 - Margins and Comments)
 
09:45
This is the fourth tutorial in a series for creating a basic website in HTML without the use of special software programs. In this tutorial, body style margins are addressed to align content flush with the top and bottom of the webpage. HTML Comment tags are also covered to assist with structuring HTML code in a logical and aesthetic way. Further tasks on defining the navigation table's columns to prepare the content container for button placement.
Views: 5768 TutsOnTheFly
Create HTML Margins Using CSS In Detail - HTML Margins Create Space
 
07:57
Create HTML Margins Using CSS In Detail - HTML Margins Create Space https://youtu.be/ebFE1PaGoSg There is no such thing as HTML margins, instead there are CSS margins. The CSS margins property allows you to set the amount of space between the edge of one element and the edge of another. Padding on the other hand allows you to set the amount of space between the contents of an element and the edges of that same element. If there is one value in the margin shorthand then that value is applied to all sides. If there are two values then the first value is applied top and bottom and the second value is applied left and right. if there are three values then the first value is applied to the top, the second value is applied left and right and the third value is applied to the bottom. If there are four values then the first value is applied to the top, the second value is applied to the right, the third value is applied to the bottom and the fourth value is applied to the left. That's all there is to it. I hope this video helps you! If you have any questions, please leave them in the comments below. And before you go, subscribe and like :) If you're into Wordpress, check out my WPLearningLab channel to learn more about WordPress so you can earn more for yourself, for your clients or for your business: https://www.youtube.com/wplearninglab
NEW BODY STYLE!| Cuddle Body Baby| Kimberly Head 100% Cloth Body
 
07:49
Follow me on Instagram: https://www.instagram.com/heart2heartbabies Facebook Link to HD Photos of Kimberly: https://www.facebook.com/artdollsbyjackieo/media_set?set=a.547428615445816.1073741972.100005360461957&type=3&pnref=story Clear Air - Somewhere Sunny by Kevin MacLeod is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/) Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100626 Artist: http://incompetech.com/
Views: 15843 Jackie Ortiz
How to create InDesign paragraph styles | lynda.com tutorial
 
07:31
This InDesign tutorial demonstrates how to create and apply paragraph styles to achieve consistent formatting with a single click. Watch more at http://www.lynda.com/InDesign-tutorials/InDesign-Styles-in-Depth/87008-2.html?utm_medium=viral&utm_source=youtube&utm_campaign=videoupload-87008-0103 This specific tutorial is just a single movie from chapter one of the InDesign Styles in Depth course presented by lynda.com author Michael Murphy. The complete InDesign Styles in Depth course has a total duration of 5 hours, and covers text styles, table and cell styles, object styles, and every feature in InDesign that is improved by the use of styles InDesign Styles in Depth table of contents: Introduction 1. Paragraph and Character Styles 2. Advanced Text Styles 3. Creating and Managing Lists 4. Importing Word, RTF, and Text Files 5. Object Styles 6. Table and Cell Styles 7. Styles and Other Features 8. Generating a Dynamic Table of Contents from Styles 9. Managing and Sharing Styles 10. Taking Your Styles to the Web, EPUB, and Accessible PDF Conclusion
Views: 110533 LinkedIn Learning
jQuery append elements
 
08:18
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-append-elements.html In this video we will discuss how to append and prepend elements To append elements we have append() appendTo() To prepend elements we have prepend() prependTo() Since these methods modify DOM, they belong to DOM manipulation category. jquery append example : The following example appends the specified HTML to all div elements <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('div').append('<b> Tutorial</b>'); }); </script> </head> <body style="font-family:Arial"> <div id="div1">jQuery</div> <div id="div2">C#</div> <div id="div3">ASP.NET</div> </body> </html> jquery appendto example : The above example can be rewritten using appendTo as shown below. $('<b> Tutorial</b>').appendTo('div'); What is the difference between append and appendTo Both these methods perform the same task. The only difference is in the syntax. With append method we first specify the target elements and then the content that we want to append, where as we do the opposite with appendTo method. jquery prepend example : The following example prepends the specified HTML to all div elements <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('div').prepend('<b>Tutorial </b>'); }); </script> </head> <body style="font-family:Arial"> <div id="div1">jQuery</div> <div id="div2">C#</div> <div id="div3">ASP.NET</div> </body> </html> jquery prependTo example : The above example can be rewritten using prependTo as shown below. $('<b>Tutorial </b>').prependTo('div'); What is the difference between prepend and prependTo Both these methods perform the same task. The only difference is in the syntax. With prepend method we first specify the target elements and then the content that we want to prepend, where as we do the opposite with prependTo method. jQuery append existing element example : These methods (append, appendTo, prepend, prependTo) can also select an element on the page and insert it into another <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('div').append($('#mySpan')); }); </script> </head> <body style="font-family:Arial"> <span id="mySpan"> Programming</span> <div id="div1">jQuery</div> <div id="div2">C#</div> <div id="div3">ASP.NET</div> </body> </html> Difference between prepend and append prepend method, inserts the specified content to the beginning of each element in the set of matched elements, where as append method inserts the specified content to the end of each element in the set of matched elements.
Views: 50476 kudvenkat
HTML Properties
 
03:34
Views: 52 Kirsten Markley
HTML Body Container and Contents Style
 
09:14
Lecture 24: WEB DEVELOPMENT VIDEO SERIES IN HINDI HTML Body Container and Contents Style by Login tuts. Youtube : https://youtu.be/FPHIsmXRjU4
Views: 217 Logictuts
PART 02 DocTypes and setting the Head, Title and Body Tags.
 
04:46
Using HTML to set up the index.html tab, and then building up the Head, title and Bopdy tags.
Views: 53695 John Creighton
Screencast #36: Current Nav Highlighting: Using PHP to Set the Body ID
 
18:57
One of the more efficient ways to handle current navigation highlighting is to give each of your navigation items a unique class name. Then give each page a unique ID on the body element. Then CSS can control what each navigation item looks like based on that body ID. But what if you are using a CMS like WordPress which includes that body tag as part of a template? In this case, we can use PHP to look at the URI of the page and create the ID based on that. Nifty trick! Recorded Nov 15, 2008.
Views: 3333 Chris Coyier
LearnHow: Style a web page using CSS
 
36:19
Basic CSS for complete beginners: Learn how to use CSS to give your web page style in less than 40 minutes. Links: previous HTML tutorial(https://www.youtube.com/watch?v=M-r-GkyAGvY), Paint.NET(http://www.getpaint.net/download.html), banner.png(http://tinyurl.com/zw5mqx4), sky.png(http://tinyurl.com/gud4jpw).
Views: 1310 LearnHow
Add Styles to the HTML in an email using CSS and PHPMailer
 
03:10
Access the full course: https://www.udemy.com/php-email/?couponCode=YAPA1 We use CSS, or cascading style sheets, to add styles and formatting to HTML. There are three ways you can add CSS to HTML: external stylesheets, embedded and inline styles. When sending an email the safest option with the most support in email clients is to add styles inline.
Views: 5095 Dave Hollingworth
Style Css For Html Table Part 2
 
05:55
Lecture 13 part 2: Web Development Tutorial Series In Hindi Style Css For Html Table Part 2 by Login tuts. Youtube : https://youtu.be/LJVbPx7jct
Views: 11461 Logictuts
Tutorial 6 | Inline style setting using style attribute | style attribute | HTML Basics
 
06:36
In this video, we have discussed how to set style for a tagged element. In such styling, we define the style inside the open tag. This kind of styling is known as inline style setting. Following are the tutorial series available in our Channel (Varcodex): How to create a video game step by step tutorials: https://www.youtube.com/playlist?list=PLBRJYTiN1Cadv7IX1ZoPanbI_BWRVktrD How to create New User Registration Form with email validation using PHP, Jquery and Mysql: https://www.youtube.com/playlist?list=PLBRJYTiN1CafCjRbY0sRYK4QAsbGJ2fKq How to monetize unity games for android platform: https://www.youtube.com/playlist?list=PLBRJYTiN1CafmznrD71cY2zoCClWqRsM1 PHP Basics tutorial for Beginners: https://www.youtube.com/playlist?list=PLBRJYTiN1CaduMGWQeRaQeG8PqESvZSf5 MYSQL Basics tutorial for Beginners: https://www.youtube.com/playlist?list=PLBRJYTiN1Cad9--4UmBaUyY6jN6Kllcpf HTML Basics Tutorial for Beginners: https://www.youtube.com/playlist?list=PLBRJYTiN1Cad4XWtwfarW9U-GyAVuJctd JAVASCRIPT Basics Tutorial For Beginners https://www.youtube.com/playlist?list=PLBRJYTiN1CafcS_EFsO2B3Ntd8VJwbEp7 C# Programming Basics: https://www.youtube.com/playlist?list=PLBRJYTiN1Caf8_cpoXw__2dFVGrMPWWEQ
Views: 4 Varcodex
Style the HTML Body Element- freeCodeCamp HTML5 and CSS lesson #45
 
00:37
Lesson #45 Use YouTube with an ad-free browser by Brave https://brave.com/sup471 If you found this video helpful please like and subscribe to support the channel!! You are free to check out our Redbubble Store for Rum Ham merchandise!! https://goo.gl/GiQG5S #freecodecamp Where I write about my projects https://supremerumham.wordpress.com/
Views: 12 Alex
jQuery add event handler to dynamically created element
 
09:15
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-add-event-handler-to-dynamically.html In this video we will discuss, how to add event handlers to dynamically created elements. Let us understand this with an example. The following example, allows us to dynamically create new list item (li), attach a click event handler and add it to the unordered list (ul). This happens when you click "Add a New List Item" button. The problem with this approach is that we are binding a click event handler to every list item. This means if you have 500 list items, then there will be 500 event handlers in the memory and this may negatively affect the performance of your application. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('li').on('click', function () { $(this).fadeOut(500); }); $('#btnAdd').on('click', function () { var newListItem = $('<li>New List Item</li>').on('click', function () { $(this).fadeOut(500); }); $('ul').append(newListItem); }); }); </script> </head> <body style="font-family:Arial"> <input id="btnAdd" type="button" value="Add a New List Item" /> <ul> <li>List Item</li> <li>List Item</li> </ul> </body> </html> A better way of doing the same from a performance standpoint is shown below. In this example, the click event handler is attached to the listitem (li) parent element (ul). Even if you have 500 list items, there is only one click event handler in memory. So how does this work 1. When you click on a list item (li), the event gets bubbled up to its parent (ul) as the list item (li) does not have an event handler 2. The bubbled event is handled by the the parent (ul) element, as it has a click event handler. 3. When a new list item is added dynamicaly, you don't have to add the click event handler to it. Since the newly created list item (li) is added to the same parent element (ul), the click event of this list item also gets bubbled upto the same parent and will be handled by it. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('ul').on('click', 'li', function () { $(this).fadeOut(500); }); $('#btnAdd').on('click', function () { $('ul').append('<li>New List Item</li>'); }); }); </script> </head> <body style="font-family:Arial"> <input id="btnAdd" type="button" value="Add a New List Item" /> <ul> <li>List Item</li> <li>List Item</li> </ul> </body> </html>
Views: 56929 kudvenkat
jQuery each function
 
15:38
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-each-function.html In this video we will discuss 1. Use of jQuery each function 2. How to exit from each function in jQuery 3. Implicit iteration in jQuery 4. Performance considerations when using jquery each function jQuery each function is used to iterate over the items in a collection. For each item in the collection the anonymous function is called. The index of the element and the element itself are passed to the anonymous function. $('li').each(function (index, element) { alert(index + ' : ' + $(element).text()); }); To refer to the current element that we are iterating over you can also use this keyword. $('li').each(function (index) { alert(index + ' : ' + $(this).text()); }); If you don't care about the index and just need the text of the list item, then you can get rid of the index parameter $('li').each(function () { alert($(this).text()); }); Replace < with LESSTHAN symbol and > with GREATERTHAN symbol How to exit from each function in jQuery : To exit from each function, return false. <script type="text/javascript"> $(document).ready(function () { $('li').each(function () { if ($(this).text() == 'UK') { return false; } alert($(this).text()); }); }); </script> Implicit iteration in jQuery : The $('li') selector returns all list item elements. Notice that we are calling the css() jquery function on the jquery collection itself. In this case, css() method implicitly iterates over each element in the entire collection. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('li').css('color', 'red'); }); </script> </head> <body style="font-family:Arial"> <ul> <li>US</li> <li>India</li> <li>UK</li> <li>Canada</li> <li>Australia</li> </ul> </body> </html> There is no need to explicitly iterate over each element in the collection. Most jQuery methods implicitly iterate over the entire collection. <script type="text/javascript"> $(document).ready(function () { $('li').each(function () { $(this).css('color', 'red'); }); }); </script> Performance considerations when using jquery each function <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('li').each(function () { $('#divResult').html($('#divResult').html() + '<br/>' + $(this).text()) }); }); </script> </head> <body style="font-family:Arial"> <ul> <li>US</li> <li>India</li> <li>UK</li> <li>Canada</li> <li>Australia</li> </ul> <div id="divResult"></div> </body> </html> From a performance standpoint, there are 2 problems with the above code. 1. jQuery needs to search the DOM for div element with id = divResult, for each list item in the collection. Since there are 5 list items, jquery searches the DOM 5 times for the same div element with id = divResult. The performance of the above code can be improved by caching the divResult element. 2. The DOM element (div element with id = divResult) is being updated on each iteration. Again this is bad for performance. To improve the performance build a string variable with the required data on each iteration of the loop. Once the loop has completed, update the DOM element with the value that is present in the string varibale. This will ensure that the DOM element is updated only once and this is much better for performance. The following is much better from a performance standpoint. <script type="text/javascript"> $(document).ready(function () { var result = ''; $('li').each(function () { result += '<br/>' + $(this).text(); }); $('#divResult').html(result); }); </script>
Views: 80380 kudvenkat
Use an ID Attribute to Style an Element , freeCodeCamp review html & css, lesson 38
 
03:59
freeCodeCamp tutorial, review and help, in this challenge we learn how to apply style to our created ID's. When selecting our ID's in our style element we need to select using a hash-symbol (#) as opposed to a period (.) which is used when selecting a class.
Views: 2462 We Will Code
Paint & Body - Laser Straight Body Lines on Kevin's Korner from Eastwood
 
04:22
BUY the Evolution Gun Here: http://www.eastwood.com/eastwoods-evolution-hvlp-paint-gun-5405.html Buy Contour Body Filler: http://www.eastwood.com/ew-contour-premium-body-filler-8-gal.html BUY Contour Primer Surfacer: http://www.eastwood.com/ew-contour-polyseter-primer-surfacer-gal.html BUY Guide Coat: http://www.eastwood.com/ew-guide-coat-black-aerosol-12-oz.html Contour™ 1-step Premium Body Filler actually inhibits rust and self-etches! Save time in your shop with our "all-in-1-step" custom-blended premium body filler. It contains rust inhibitors to prevent corrosion long after painting, and its unique self-etching properties bite into the surface for maximum adhesion. A great "1-2 punch" to help finish bodywork faster and more effectively! Rust inhibitors prevent corrosion Self-etching properties create excellent adhesion Superior coverage and feather-edging ability 1-step process; no glazing putty required The Eastwood-Engineered Evolution™ HVLP Paint Gun is a uniquely versatile, gravity-feed paint gun that performs and feels like no other paint gun. Start with an air cap and nozzle designed to generate superior atomization, resulting in a finish you would normally expect from more expensive, higher-end, professional guns. Paint longer with less fatigue! High-tech, ergonomic, composite body is precision-balanced and lightweight Save set-up time! Setting indicators on air/paint knobs let you revert back to your favorite settings Latest spray atomization technology and HVLP transfer efficiency Requires 12 cfm at 43 psi Includes 1.4mm nozzle and needle Built to last even in professional environments
Views: 44328 Eastwood Company
How to Scale or Zoom HTML Page for Different Screen Resolutions
 
04:17
http://yanshenghuang.com/video/how-to-scale-or-zoom-html-page-for-different-screen-resolutions/ Yan Sheng Huang explains how to set the default scale or zoom factor on an HTML page using a simple piece of JavaScript code. This works well as for older sites or sites that were not designed for large resolutions. It provides an alternative for the user instead of having them see a tiny box on a large screen (ie. 800 pixel width site on a 2560 pixel width screen resolution).
Views: 25465 Yan S. Huang
HTML Body, Paragraph and Headings - UMD Curriculum In A Box
 
00:27
Created By: Elissa Redmiles, Sean Kross, Allie Abad, Izzy Coronado, and Amy Malone. Visit us at cs.umd.edu/csinabox Contact: [email protected]
Views: 155 Elissa Redmiles
jQuery get selected checkbox text
 
09:04
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-get-selected-checkbox-text.html In this video we will discuss how to get the checked checkbox text along with the value. This is continuation to Part 12, please watch Part 12 from jQuery tutorial before proceeding. Here is what we want to do. As we check the checkboxes, we want to display the count of checkboxes checked and their text and values. Replace < with LESSTHAN symbol and > with GREATERTHAN symbol. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('input[name="skills"]').click(function () { getSelectedCheckBoxes('skills'); }); $('input[name="cities"]').click(function () { getSelectedCheckBoxes('cities'); }); var getSelectedCheckBoxes = function (groupName) { var result = $('input[name="' + groupName + '"]:checked'); if (result.length > 0) { var resultString = result.length + " checkbox checked<br/>"; result.each(function () { var selectedValue = $(this).val(); resultString += selectedValue + " - " + $('label[for="option-' + selectedValue + '"]').text() + "<br/>"; }); $('#div' + groupName).html(resultString); } else { $('#div' + groupName).html("No checkbox checked"); } }; }); </script> </head> <body style="font-family:Arial"> Skills : <input type="checkbox" name="skills" value="js" /> <label for="option-js">JavaScript</label> <input type="checkbox" name="skills" value="jq" /> <label for="option-jq">jQuery</label> <input type="checkbox" name="skills" value="cs" /> <label for="option-cs">C#</label> <input type="checkbox" name="skills" value="vb" /> <label for="option-vb">VB</label> <br /><br /> Preferred Cities : <input type="checkbox" name="cities" value="ny" /> <label for="option-ny">New York</label> <input type="checkbox" name="cities" value="nd" /> <label for="option-nd">New Delhi</label> <input type="checkbox" name="cities" value="ln" /> <label for="option-ln">London</label> <br /><br /> Selected Skills:<br /> <div id="divskills"></div> <br /> Selected Cities:<br /> <div id="divcities"></div> </body> </html>
Views: 69707 kudvenkat
How to Build Websites
 
05:03
TAKE THE ENTIRE CLASS https://greatercommons.com/learn/how-to-create-a-website When more than one CSS rule-set is applied to the same element, what determines which element will be applied? CSS Specificity inline style id class, attribute, pseudo-class element, pseudo-element Order: last declaration wins All HTML tags we have learned so far Html Head Body Meta Title Paragraph Heading Unordered list Ordered list List item Link Image Anchor Paragraph Div HTML tag attributes Applying two classes to the same element class=”authorize emphasize” All CSS properties we have learned so far width height background-color color font-size display display: inline display: block display: inline-block display: none padding border margin margin: 20px auto; margin: 0 auto; TRBL TB RL T R B L box-sizing: border-box border-radius background-image background-image: url("../000_img/pup.jpg"); background-size background-size: cover; background-repeat background-repeat: no-repeat; text-align text-align: center; cursor cursor: pointer; font-style font-style: italic; All CSS selectors we have learned so far general element class id * attribute link link visited hover active form focus text first-letter first-line nested div p All p tags beneath a div div GT p All p tags immediately beneath a div following siblings div ~ p All p tags that are a sibling following a div div + p All p tags that are an immediate sibling following a div compound examples: ul#summer-drinks li ul#summer-drinks li.favorite html body ul#summer-drinks li.favorite JOIN ME, CONNECT, & FOLLOW https://twitter.com/todd_mcleod https://plus.google.com/+ToddMcLeod https://www.linkedin.com/in/tamcleod https://www.instagram.com/tuddleymcleod COOL STUFF: + https://goo.gl/uNb5QJ YOUTUBE PERSONAL https://www.youtube.com/channel/UCJ8YIwWQCO7hMiqpOw2ZLFw
Views: 219 Learn To Code
jquery animate function
 
12:26
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/05/jquery-animate-function.html jQuery animate function let's us animate CSS properties. The following example animates the div element, while changing the font-size property of the div element from its initial size to 50 pixels over a period of 2000 milli-seconds (2 seconds). <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#myButton').click(function () { $('#myDiv').animate({ 'font-size': '50' }, 2000); }); }); </script> </head> <body style="font-family:Arial"> <input type="button" id="myButton" value="Animate" /> <br /><br /> <div id="myDiv"> jQuery animate function </div> </body> </html> Syntax of jquery animate function .animate( properties [, duration ] [, easing ] [, complete ] ) Animate function has 4 parameters. Only the first parameter (properties) is the required parameter. Rest 3 are optional. properties - An object of CSS properties and values duration - The duration for animation in milliseconds. Default is 400. easing - Easing function to use for the transition. Default is swing. You could also use linear. complete - A function to call once the animation is complete What is jQuery easing Easing is a technique where the speed and/or direction of animation are changed while the animation is in progress. Easing can make the animation start off slow and gradually speed up, start up fast and gradually slow down, and a whole host of other effects. The difference between linear and swing easing is very subtle. The following page shows all the easings provided by jQuery UI https://jqueryui.com/easing The following example increases the height and width of the image to 400 pixels on mouseover. On mouseout the height and width are reduced to 100 pixels. <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#myImage').on({ mouseover: function () { $(this).animate({ 'height': 400, 'width': 400, }, 3000); }, mouseout: function () { $(this).animate({ 'height': 100, 'width': 100, }, 3000); } }); }); </script> </head> <body style="font-family:Arial"> <img id="myImage" height="100" width="100" src="/Images/Tulips.jpg" /> </body> </html> In the following example, several calls to animate() method are chained together. By default these calls are placed into a queue to be executed one after the other in series rather than executing all of them simultaneously in parallel. <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#myImage').click(function () { $(this) .animate({ 'left': '300' }) .animate({ 'top': '200' }) .animate({ 'left': '10' }) .animate({ 'top': '10' }); }); }); </script> </head> <body style="font-family:Arial"> <img id="myImage" height="100" width="100" style="position:absolute" src="/Images/Tulips.jpg" /> </body> </html> Please note: By default, all HTML elements have a static position, and cannot be moved. To modify the position , set the CSS position property of the element to fixed, absolute or relative.
Views: 39064 kudvenkat
HOW TO: WIG CARE | Wash, Blow- Dry & Style • feat. ghd Aura hairdryer
 
19:19
WATCH IN HD... Heres how I would usually wash, condition and care for my wigs after they have been washed. This is pretty basic process, for the wig I washed, as it didn't require further treatment. ---------------------------------------- ghd Aura Hairdryer http://www.ghdhair.com ghd Heat Protector Spray http://www.ghdhair.com ---------------------------------------- WIG Peerless Hair Peruvian Body Wave 24" 24" 24" 24" & 16" Lace closure HAIR REVIEW: https://youtu.be/-Br_QwiOJLA STORE LINK http://www.aliexpress.com/store/230607 BUNDLES http://www.aliexpress.com/store/product/3pcs-4pcs-per-lot-Peruvian-virgin-hair-body-wave-6A-grade-1B-Natural-colour-human-hair/230607_1879539672.html LACE CLOSURE http://www.aliexpress.com/store/product/Body-Wave-Lace-Closure-6A-Hair-Lace-Top-Closure-4X4-Bleached-Knots-Swiss-Lace-10-To/230607_32221806925.html The wig was made by myself. ---------------------------------------- HAIR STYLED USING: NU.ME Argon Oil NU.ME Lustrum Curling Wand 32mm Barrel To get 40% off the website* + Free U.S. Shipping. http://goo.gl/qVYVNm USE CODE: Esther *excluding seasonal catalog To Get $100 off Any Set http://goo.gl/A5DEyT USE CODE: EstherCurls ---------------------------------------- LOVE NECKLACE http://behappylivepink.com/collections/jewelry/products/love-necklace Use my code "estaregrams" for some £$ off! Instagram: @behappylivepink ---------------------------------------- OTHER VIDEOS LOOKBOOK | SPRING 2015 LOOKS: https://youtu.be/Le9e0cqNLu0 LOOKBOOK | THE VELVET CLOSET SS15: https://youtu.be/Y_3LIEiLHNg HOW TO: PURPLE OMBRÉ WIG: https://youtu.be/MfpHJIXH_Ow MAKEUP | SPRNG LOOK: https://youtu.be/TRM8p2JukMs VLOG | CRY BABY! : https://youtu.be/IDsv5JwPrww VLOG | HANGING w/ Falzthebahdguy: https://youtu.be/JiaV1poocis ------------------------------------------------------------------ ☆ CONNECT WITH ME ☆ ○ Instagram: http://www.instagram.com/estaregrams ○ Snapchat: estare ○ Facebook: https://www.facebook.com/estarelive ○ Twitter: http://www.twitter.com/estarelive Get in touch! (business enquiries only please): [email protected]
Views: 86300 estareLIVE
jquery floating div
 
13:36
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/05/jquery-floating-div.html In this video we will discuss, how to create floating div using jQuery. We want the div element in the sidebar to be floating and always visible as we scroll down the page. Example : In this example we are using position() and scrollTop() functions. The object returned by position() function has top and left properties, which can be used to know the current top and left positions (coordinates). We are using this function to find the top position of the div element that we want to keep floating as we scroll down. To get the current vertical position of the scroll bar, we are using scrollTop() function. As we scroll and when the current vertical position of the scroll bar becomes GREATER THAN the top position of the div element, then we want the div element to start floating. To do this set position style to fixed. A fixed position element is positioned relative to the browser window. So as you scroll down it will be floating in the browser window. If the current vertical position of the scroll bar becomes LESS THAN the top position of the div element, then we don't want the div element to float, so we set position style to relative. A relative position element is positioned relative to itself. So if you set position to relative and top to 0, it will continue to stay where it is without floating. <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { var floatingDiv = $("#divfloating"); var floatingDivPosition = floatingDiv.position(); $(window).scroll(function () { var scrollPosition = $(window).scrollTop(); if (scrollPosition >= floatingDivPosition.top) { floatingDiv.css({ 'position': 'fixed', 'top' : 3 }); } else { floatingDiv.css({ 'position': 'relative', 'top' : 0 }); } }); }); </script> </head> <body style="font-family:Arial;"> <table align="center" border="1" style="border-collapse:collapse"> <tr> <td style="width:500px"> Main Page Content </td> <td style="width:150px; vertical-align:top"> Side panel content <br /><br /> <div id="divfloating" style="background-color:silver; width:150px; height:150px"> Floating Div - Keeps floating as you scroll down the page </div> </td> </tr> </table> </body> </html>
Views: 29823 kudvenkat
HTML / CSS lesson 5 - CSS style sheet font, font colours, background colours
 
04:36
In this lesson we customise the font type, font colour, background colour attributes of the html tags (p), (h1), (h2), (h3), (body), and (a) in the CSS style sheet. Editing environment: CPanel Pro 1.0
Views: 1079 Magic Monk
Google Homepage Part 6 - css styles
 
04:08
Styling a google homepage with css.
Views: 403 Coding With Gwen
How to call wcf service using jquery
 
12:52
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/06/how-to-call-wcf-service-using-jquery.html In this video we will discuss, how to call wcf service using jquery ajax Step 1 : Create SQL Server table and insert employee data Create table tblEmployee ( Id int primary key identity, Name nvarchar(50), Gender nvarchar(10), Salary int ) GO Insert into tblEmployee values ('Mark', 'Male', 50000) Insert into tblEmployee values ('Sara', 'Female', 60000) Insert into tblEmployee values ('John', 'Male', 45000) Insert into tblEmployee values ('Pam', 'Female', 45000) GO Step 2 : Create a stored procedure to retrieve employee data by ID Create procedure spGetEmployeeById @Id int as Begin Select ID, Name, Gender, Salary from tblEmployee where ID = @Id End Step 3 : Create new asp.net web application project. Name it Demo. Step 4 : Include a connection string in the web.config file to your database. <add name="DBCS" connectionString="server=.;database=SampleDB;integrated security=SSPI" /> Step 5 : Add a class file to the project. Name it Employee.cs. Copy and paste the following code. namespace Demo { public class Employee { public int ID { get; set; } public string Name { get; set; } public string Gender { get; set; } public int Salary { get; set; } } } Step 6 : Add a new WCF Service (Ajax-enabled). Name it EmployeeService.svc. Copy and paste the following code. using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.ServiceModel; using System.ServiceModel.Activation; namespace Demo { [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class EmployeeService { [OperationContract] public Employee GetEmployeeById(int employeeId) { Employee employee = new Employee(); string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; using (SqlConnection con = new SqlConnection(cs)) { SqlCommand cmd = new SqlCommand("spGetEmployeeById", con); cmd.CommandType = CommandType.StoredProcedure; SqlParameter parameter = new SqlParameter(); parameter.ParameterName = "@Id"; parameter.Value = employeeId; cmd.Parameters.Add(parameter); con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { employee.ID = Convert.ToInt32(rdr["Id"]); employee.Name = rdr["Name"].ToString(); employee.Gender = rdr["Gender"].ToString(); employee.Salary = Convert.ToInt32(rdr["Salary"]); } } return employee; } } } Step 7 : Add an HTML page to the ASP.NET project. Copy and paste the following HTML and jQuery code <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#btnGetEmployee').click(function () { var empId = $('#txtId').val(); $.ajax({ url: 'EmployeeService.svc/GetEmployeeById', method: 'post', contentType: "application/json;charset=utf-8", data: JSON.stringify({ employeeId: empId }), dataType: 'json', success: function (data) { $('#txtName').val(data.d.Name); $('#txtGender').val(data.d.Gender); $('#txtSalary').val(data.d.Salary); }, error: function (err) { alert(err); } }); }); }); </script> </head> <body style="font-family:Arial"> ID : <input id="txtId" type="text" style="width: 86px" /> <input type="button" id="btnGetEmployee" value="Get Employee" /> <br /><br /> <table border="1" style="border-collapse: collapse"> <tr> <td>Name</td> <td><input id="txtName" type="text" /></td> </tr> <tr> <td>Gender</td> <td><input id="txtGender" type="text" /></td> </tr> <tr> <td>Salary</td> <td><input id="txtSalary" type="text" /></td> </tr> </table> </body> </html>
Views: 32426 kudvenkat
Easy Boxed & Stretched Layout Editing | Canvas HTML
 
00:49
Change the Layout of your Website just by adding/removing a Class to your Document's Body Tag. This Video is a Part of the Canvas | The Multi-Purpose HTML5 Template. http://themeforest.net//item/canvas-the-multipurpose-html5-template/9228123?ref=SemiColonWeb
Views: 9700 SemiColonWeb
jQuery selected selector
 
07:41
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-selected-selector.html In this video we will discuss jQuery :selected selector. To select all checked checkboxes or radio buttons, we use :checked selector. To select all selected options of a select element use :selected selector. How to get selected option from single select dropdown in jquery : We want to get the selected option text and value Replace < with LESSTHAN symbol and > with GREATERTHAN symbol. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#selectCountries').change(function () { var selectedOption = $('#selectCountries option:selected'); $('#divResult').html('Value = ' + selectedOption.val() + ', Text = ' + selectedOption.text()); }); }); </script> </head> <body style="font-family:Arial"> Country: <select id="selectCountries"> <option selected="selected" value="USA">United States</option> <option value="IND">India</option> <option value="UK">United Kingdom</option> <option value="CA">Canada</option> <option value="AU">Australia</option> </select> <br /><br /> <div id="divResult"></div> </body> </html> How to get all selected options from multi select dropdown in jquery : We want to get all the selected options text and value. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#selectCountries').change(function () { var selectedOptions = $('#selectCountries option:selected'); if (selectedOptions.length > 0) { var resultString = ''; selectedOptions.each(function () { resultString += 'Value = ' + $(this).val() + ', Text = ' + $(this).text() + '<br/>'; }); $('#divResult').html(resultString); } }); }); </script> </head> <body style="font-family:Arial"> <select id="selectCountries" multiple="multiple"> <option selected="selected" value="USA">United States</option> <option value="IND">India</option> <option value="UK">United Kingdom</option> <option value="CA">Canada</option> <option value="AU">Australia</option> </select> <br /><br /> <div id="divResult"></div> </body> </html> Please note : Hold down the CTRL key, to select more than one item.
Views: 73145 kudvenkat