Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Sly

Member
  • Content Count

    14
  • Joined

  • Last visited

  1. Assuming you are also trying to hide the logo on the homepage, use basically the same code, but just swap in #logo for #main-navigation. So this will hide the logo on the home page: body.homepage #logo { display: none } … which means “do not display an element with an ID of logo if it is inside a body element with a class of homepage.” Your second block of code looks to be missing a “#” like so: #collection-516572a5e4b0dc29aed91cfb #logo { display: none } … which means “do not display an element with an ID of logo if it is inside another element with an ID of collection-516 … etc.” The most important thing with learning CSS is to learn your selectors. A “#” in front of a name means the name is an ID, which can only be given to one element per page. A “.” in front of a name means it is a class, which can be given to an unlimited number of elements per page. If there is no “#” or “.” in front of a name, that means it is a tag, i.e. body or p or a. If you understand those 3, you are almost halfway to knowing CSS. A full description of selectors is here: CSS Selectors. The other half of CSS is the properties, which you can find here: CSS Reference. … it all looks extremely confusing at first glance, but it is actually fairly simple once you get used to looking at it. To create a CSS rule (a line of CSS) all you do is put one or more selectors, then an opening brace { and then one or more properties, separated by semi-colons, and then a closing brace } and you have created one rule. The rule simply applies those properties to whatever the selector selected. That really is about 75% of all you need to know about CSS. It just takes a little practice and seeing it in action to realize how simple it actually is.
  2. Turn on Word Wrap in your text editor and a single-line comment is as good as a multi-line comment. Like so: {#Integer ege't urna. Praesent rhoncus, lorem nec facilisis ultrices, magna leo pellentesque neque, eu aliquam diam tellus aliquam pede. Vivamus gravida, risus in pellentesque ultricies, urna odio condimentum sem, ege't tempus augue felis non erat. Nam quis lorem semper pede accumsan vestibulum. Vivamus condimentum.} If you really need a multi-line comment, you simply build your own out of multiple single-line comments, just like you would in an Apache configuration file: {#Integer ege't urna. Praesent rhoncus, lorem nec facilisis ultrices,} {#magna leo pellentesque neque, eu aliquam diam tellus aliquam} {#pede. Vivamus gravida, risus in pellentesque ultricies, urna odio} {#condimentum sem, ege't tempus augue felis non erat. Nam quis} {#lorem semper pede accumsan vestibulum. Vivamus condimentum.} Some text editors have commands that do this automatically for you.
×
×
  • Create New...