Jump to content

Inquirer

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Inquirer

  • Rank
    Newbie

Previous Fields

  • Languages
    PHP, HTML, CSS, JS

Profile Information

  • Gender
    Male
  • Interests
    Web Design, Software Design, Programming

Recent Profile Visitors

31 profile views
  1. or CSS: .class:hover { /*CSS code*/ }
  2. Inquirer

    Stylesheet

    Or use Icons8 search an item, and go to the glyph category!
  3. <!DOCTYPE html> <html> <head> <style> .class { background-color: white; } .class:hover { background-color: grey; } </style> </head> <body> <div class="class">...</div> </body> </html>
  4. To include the CSS that you are using, use internal or external! internal: <!DOCTYPE html> <html> <head> <style> /*CSS here*/ </style> </head> <body> </body> </html> or external <!DOCTYPE html> <html> <head> <link href="style.css" rel="stylesheet" charset="utf-8"> <!--Note - You don't have to use the charset, but I did it since I noticed you were using that enctype--> <!--You would then put the CSS in the file you created titled CSS--> </head> <body> </body> </html>
  5. <!DOCTYPE html> <html> <head> <style> .class { color: black; } .class:hover { transform: resize(3px); } </style> </head> <body> <button class="class" id="id">Text</button> </body> </html> or using JS <!DOCTYPE html> <html> <head> <style> body { font-size: 12px; } .toggled { font-size: 14px; } </style> </head> <body> <p>This text will be toggled on button click</p> <button onclick="myFunction()">Click to enlarge text</button> <script> function myFunction() { var element = document.body; element.classList.toggle("toggled"); } </script>
  6. Icons8 Use this for additional icons! Not font-awesome, but helpful!
  7. Right, I saw the w3 tutorial, but say I want to make a button to download a word doc. How do I get the file link? The w3 file logo was myw3schoolsimage.jpg But what do i put instead of /images/
  8. I would also like to recommend a website that you can get icons and embed the HTML. Icons8 I think you can figure out how to get the HTML but just in case. 1. Search an Icon(they have Facebook icons - old and new) 2. Click on the icon of your choice 3. Click on "Embed HTML" 4. Before you do that, you can choose to recolor by selecting the option on the sidebar! And to embed, just put the copied HTML into the innerHTML Example <button onclick=window.open("https://icons8.com") id="i8">Insert the HTML for the icon here</button> I'm sure you could have figured that out... >_<
  9. Inquirer

    Download

    How do I make a download work? <a href="" download> What do I put into the href attribute? In the w3schools example, they use: <a href="/images/myW3Schoolslogo.jpg" download> Though how do I find the href attribute of a file? Say I was trying to make a download button for a word file. How do I do that? Thanks for helping a newbie!
  10. How do I make a download link? I am unaware of how to get a file link as in the w3 example. How would you do it? Please give code with an explanation. I will understand so don't worry if it doesn't seem specific. Just try to give an example of as much as you can.
×
×
  • Create New...