Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. Please do not reply to old topics.
  2. What code have you used? Setting the opacity of an element will change the opacity of the entire element, including its text. If you just want the background to be transparent, use an rgba() color as the background color.
  3. You should read carefully through the CSS tutorial: https://www.w3schools.com/css/default.asp If you don't understand CSS you basically can't build a proper website.
  4. You should call exit or die any time you're redirecting a user to prevent the code from executing any of the instructions that are further down. Nothing about the header() function tells the code to stop executing. header('Location: /Logon/Logon.php?From=Home'); exit;
  5. You should check that the index exists before trying to use it: if(isset($_SESSION['User'])) { echo "User: ".$_SESSION['User']; } else { echo "No user"; } If your previous server was not showing a warning at this line then you probably were suppressing warnings.
  6. If there is nothing in the entirety of the cascade then it means that it is using the browser's default. In Firefox, you can find a "Computed" tab near the "Rules" tab which will have a font-size property in pixels. If you don't see it there then click the "Browser styles" checkbox.
  7. No, the :active pseudo-class was never intended to do that. It is a mere coincidence that people ended up using the CSS ".active" class to represent a link that points to the current page. From the original CSS 1 specification: https://www.w3.org/TR/CSS1/#anchor-pseudo-classes
  8. I'm not sure what you are referring to. The :active pseudo-class has always worked as designed. It applies a style to an object when the object is being interacted with, either by being clicked or having focus and the user pressing Enter. You might be thinking of the :visited pseudo-class. Javascript does not have access to computed styles of visited links because that would allow anybody to track where you have been.
  9. They probably did it because all of the other major CSS frameworks do it as well. Personally, I do not like to use CSS frameworks. CSS is quite a simple language on its own, it doesn't really need abstraction layers on top of it.
  10. First, the link to your stylesheet should be further down than the link to the W3.CSS stylesheet. If the error is still occurring after that, then it may be that it's using selectors that have higher precedence. The issue with the width of the blocks might be because W3.CSS is forcing everything on the page to use a border-box instead of content-box for the box sizing. This is a practice that a lot of CSS frameworks use which I disagree with. A framework shouldn't be messing with the default rendering behaviour of elements that don't use its classes.
  11. It could be done with Javascript on the client side or it could be done on the server using PHP or some other server-side language.. You could generate an image or you could make it in HTML and have selectable text on an image background. How exactly would you like it to work?
  12. It's a pseudo-element because a new element is created wrapped around the selected text. A pseudo-class is when a class is added to an existing element under certain circumstances.
  13. Please do not reply to old topics.
  14. You should read the reference manual for the linear gradient to understand how it works: https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient
  15. The second gradient is overwriting the first one so your first gradient is not being used. Gradients always apply to the entire surface of an element by default. If it does not appear that way, either the transparent part of the gradient is very large or your element is not as big as you thought it was. You can set background-repeat to "none" and then set the background-size and background position to put the gradient where you want it to go. /* Top half */ background-size: 100% 50%; background-position: top left; /* Bottom half */ background-size: 100% 50%; background-position: bottom left; /* Left half */ background-size: 50% 100%; background-position: top left; /* Right half */ background-size: 50% 100%; background-position: top right; /* Center */ background-position: center;
  16. You can use white-space to permit line breaks with CSS. The pre-wrap value should work for your case.
  17. What have you tried? <a href="url">anchor text</a> is very basic HTML.
  18. That only works with very specific server configurations which most servers these days don't do.
  19. You should use the "Report error" link at the bottom of the page in question so that the staff can be made aware of the issue. They almost never visit the forums.
  20. If you had two different tables with the same field names, the dot would be necessary for the query to run.
  21. Make sure that the server has PHP installed and that your file has a .php extension.
  22. The best I can find it a method which allows you to do a search using Javascript: https://developer.mozilla.org/en-US/docs/Web/API/Window/find I draw my avatars myself. My old one was a videogame character, but I want to be more original so the new one is my own character.
  23. Only the content inside the loop is repeated. This is what the string looks like on each iteration of the loop: text = "<ul>"; "<ul>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><li>Orange</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><li>Orange</li><li>Apple</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><li>Orange</li><li>Apple</li><li>Mango</li>" text += "</ul>"; "<ul><li>Banana</li><li>Orange</li><li>Apple</li><li>Mango</li></ul>" Since the string "<ul>" is not being appended inside the loop, it is not being repeated.
  24. I'm pretty sure you can set width and height attributes. You can also set the dimensions with CSS.
×
×
  • Create New...