Web Design

Best Examples Of Creative & Inspiring Office Designs
Best Examples Of Creative & Inspiring Office Designs
about 1 hour ago
Artem Gridin is a russian designed who graduated from Moscow State University of Printing Arts with a degree in Graphical Arts, but chose Design as major occupation. After 5 years of work experience in big advertising agencies, founded a...
Artem Gridin is a russian designed who graduated from Moscow State University of Printing Arts with a degree in Graphical Arts, but chose Design as major occupation. After 5 years of work experience in big advertising agencies, founded a design studio of his own where he has been working up to now. For more from Artem Gridin visit cargocollective.com/artemgridin .
about 1 hour ago
HTML5 Drag and Drop Avatar Changer Along with Resizing and Cropping
HTML5 Drag and Drop Avatar Changer Along with Resizing and Cropping
about 1 hour ago
jQuery is one of the most popular JavaScript library on the planet, which offers a lot capabilities. Using jQuery, we can easily manipulate – replace, insert, remove – elements within an HTML document and even create animatio...
jQuery is one of the most popular JavaScript library on the planet, which offers a lot capabilities. Using jQuery, we can easily manipulate – replace, insert, remove – elements within an HTML document and even create animation. In this post, we are going to take a look at how to create or insert new elements within DOM with the jQuery Append method. Recommended Reading: JQuery: Creating And Inserting New Element – Part II Insert New Element Appending is a method of creating and inserting new element within a specified element, it technically inserts the new element right before the closing tag of that specified element – thus becoming its child element. Before we proceed, we will first show you how to do it purely with JavaScript, so you can see how much simpler jQuery can make the method. In JavaScript, before we are able to add an element to the document, we need to define (create) the element. We can use .createElement() function to create a new element. In the following example, we create a new <div> element and store it in a variable named div. var div = document.createElement('div'); By the time we define a new element with this function, it only creates the element, but it doesn’t insert the new element to the document. We need to call one function, that is .appendChild() to insert that element. In the following example, we will insert this new <div>, simply, in the body document. var div = document.createElement('div'); document.body.appendChild(div); If we inspect the document in Developer Tool, you should see that our div element has been inserted there, before the body closing tag. Now, let’s see how we do the same thing with jQuery. jQuery makes manipulating document elements simpler. jQuery provides a function called .append(). In the following example, we append a <div> to body document. $('body').append('<div>'); Like what we have demonstrated with JavaScript, the code line above returns the same result. It creates a new element and inserts it before the body closing tag. But we did it in fewer lines of code. A note to remember, JavaScript does not save or alter document physically. Thus, when we view the actual document source, the elements that are generated by JavaScript will not be found. Insert New Element with Text Let’s go a bit further with this method. This time, we will insert a new element with text inside it. Like before, we will see how to do it purely with JavaScript. To do so, we need to define the new element and the text. Since we will add text, we can create a paragraph element in this example. var p = document.createElement('p'); // create new paragraph element Next, we need to define the text. The text in JavaScript is created using .createTextNode() function. In this example, we store the text value in a variable named txt. var p = document.createElement('p'), txt = document.createTextNode('This is the text in new element.'); At this point, we have two variables, which store the new element and the text respectively. However, they are still separated and can stand alone. To insert the text to the new element we have created, we can run the same .appendChild() function, like so. p.appendChild(txt); Then again, we run .appendChild() to insert the element to the body document. document.body.appendChild(p); If we see it in the browser or through the Developer Tool, we get: In jQuery, the process is simplified. Instead of separately defining two variables for the text and the new element, we can write them together with .append() function, like so. $('body').append('<p>This is the text in new element.<p>'); The above code essentially does the same thing, it will insert the the text with <p> element to the body (before the body closing tag). Final Thought You can see that using jQuery with .append() function, we are able to dynamically add new elements in a slimmer way than usin
about 2 hours ago
In today’s world everyone knows that standing out from the crowd is important and yet many businesses and business people forget that the best place to do just that is the business card. Remember if your business card is dull and b...
In today’s world everyone knows that standing out from the crowd is important and yet many businesses and business people forget that the best place to do just that is the business card. Remember if your business card is dull and boring chances are the person surfing through their rolodex will just swoosh right past you, however if you have a memorable business card you increase your chances of repeat business. On Wednesday we will have a list of great business card tutorials. The post 30+ Inspiring and creative Business cards appeared first on Design Reviver - Web Design Blog.
about 2 hours ago
Top 8 Infographic Creation Tools
Top 8 Infographic Creation Tools
about 4 hours ago
Mailing Postcards to Build a Strong Business Relationship
Mailing Postcards to Build a Strong Business Relationship
about 5 hours ago
A soon to be graduate from Salford in Manchester (UK), Kerry Lauren Heaney is another graduate of the University of Cumbria. Here we share her work and hear more about her early years as a designer and her identity design project; Noble.
A soon to be graduate from Salford in Manchester (UK), Kerry Lauren Heaney is another graduate of the University of Cumbria. Here we share her work and hear more about her early years as a designer and her identity design project; Noble.
about 5 hours ago
Advertise here with BSA Up for grabs in this week’s giveaway are three 30-day subscriptions to Depositphotos — one of the most popular sites for downloading royalty-free files online. The subscriptions being given away are ...
Advertise here with BSA Up for grabs in this week’s giveaway are three 30-day subscriptions to Depositphotos — one of the most popular sites for downloading royalty-free files online. The subscriptions being given away are usually worth $99 each. The subscriptions will allow the winners to download up to 300 royalty-free stock photos, illustrations, videos, vector art, etc. Read on to see how you can be one of our lucky winners! About Depositphotos Depositphotos is a creative online platform that gives its users an opportunity to buy and sell high-quality stock photos, vector images, and videos. They have various subscription options to make sure that you’ll find one that’s friendly to your budget. Established in 2009, Depositphotos is a continually growing company that serves customers from 192 countries. They are proud to provide their customers with support in 14 languages. The agency’s headquarters is located in Florida, USA. Do Have a Blog or Own a Website? Depositphotos is currently sponsoring bloggers and site owners by giving them free Depositphotos subscriptions. Read more about their program for bloggers and site owners on the Depositphotos website. How to Win For a chance to win a 30-day free subscription to Depositphotos, simply follow these instructions: 1) Go to the their royalty-free stock library: http://depositphotos.com/category/ 2) Find a stock file that you really like 3) In the comments section at the bottom of this post: Mention the URL of the stock file you found, and Discuss why you like the stock file or where you’d use it if you won a free subscription Giveaway Details This giveaway ends on Monday, May 27, 2013 after which the comments section on this post will be closed and you will no longer be able to leave a comment. Please leave a valid email address when filling out the comment form so that we can contact you if you’ve won. Please only comment once. The winners will be randomly selected using the same method as previous Six Revisions giveaways. The winners will be announced on a separate post and you’re advised to subscribe to our RSS feed so that you can be quickly notified when the winners announcement post has been published. Please note that comments are moderated and so your comment may not show up right away. Please also note that comments that do not follow the instructions on how to participate (described above) may not be published, or may be removed later on. Related Content 30 Beautiful Web Designs That Use Photos as Backgrounds Excellent Examples of Using Photos in Web Design 30 Stunning Urban HDR Photos with Creative Commons Licenses Related categories: Resources and Graphic Design About the Author Jacob Gube is the Founder and Chief Editor of Six Revisions. He’s also a web developer/designer who specializes in front-end development (JavaScript, HTML, CSS) and also a book author. If you’d like to connect with him, head on over to the contact page and follow him on Twitter: @sixrevisions.
about 5 hours ago
Typographic QOTD: Variety and Complexity
Typographic QOTD: Variety and Complexity
about 6 hours ago