Character entity references for single right-pointing angle quotation mark (›) and single left-pointing angle quotation mark (‹) - in other words, right and left arrow symbols.
They are on there, search for them without the & sign.
And I’m not getting the names or what they are used for?!
Just simple arrows for pointing to stuff.
rIGHT sINGLE aRROW quoTE or to give it it’s proper name - guillemet See http://en.wikipedia.org/wiki/Guillemet
Why do you use the term “single” when there are two Less-Than and Greater-Than Symbols?
Because there are 2 variations, one single arrow and one double arrow
Yes they are. About 2/3 or 3/4 of the way down the list, just below “Prime”.
Some languages use them for quotation marks, rather than " or ', hence angle quotation mark. Here, of course, they’re not being used as quotation marks, but as convenient arrow symbols for your previous or following pages.
I think you’re looking at the wrong one. This one - « - has the two arrows:
hence the other is termed “single” to distinguish it (and has an s in the entity code - ‹.
list-style:none removes the bullets and margin and padding remove the space that the bullet would have occupied and varies between browsers so needs to be set explicitly.
This makes it so the numbers don’t each take up an entire line, and thus will line up side-by-side, right?
display:inline-block is a little like floating but different :). It allows for block elements to sit inline (inline-block) and thus stack horizontally. The benefits of inline-block is that you can centre the elements (unlike floats) and also that when elements wrap they won’t snag if heights vary. The ‘con’ with inline-block is that you get a small space between blocks just like the space between words which in most cases is fine.
Can you please explain what those cryptic things are following the ampersands?!
Technobear already explained those but its best if you view the demo live to see how they look in a browser.
Maybe I wasn’t clear but you can add margins to inline blocks to move them apart (or add padding inside as per usual) but the elements will never butt up close to each other with no gap unless you jump through a few hoops; you can move them as far apart as you like though. As I said this is rarely an issue unless you had bordered columns that you want to hug close and there are methods to do this which I won;t go into detail here as it is not required.
What could I do if I wanted to adjust the spacing between numbers like this…
|< < 1 2 3,... 8 9 > >|
Just add padding to the anchor or the list. It depends if you want a bigger target area for the anchor or greater separation between anchors (or even both).
I tried that link but it didn’t do anything when I clicked around…
You lost me there
It’s just a demo of how to style the pagination. Nothing is going to happen when you click anything as the links go nowhere; that’s not a job for CSS as such.
I noticed that you need to add an “li” here…
.pagination a:hover { color:red }
Yes, well spotted that’s correct, I added the visited state into the mix and forgot to update the hover.
That’s more of a PHP thing. You could attach some kind of “current” class to the current page number, or some systems remove the link on the current page number so that it’s not clickable and is not styled like the other page numbers (which are still links).
As Ralph said you could identify the current page item with a class and use that to style the element differently.
However, if you look at the code I already gave then you will see that the current page is not an anchor; I used a strong element.
<li><strong> 2</strong>, </li>
There are two reasons for this:
It’s not a link any more as its the current page and shouldn’t go anywhere.
The worst thing you can do to a user is make them wait while you load the same page again when they have clicked the item in error. This not only makes the user feel dumb but sometimes also confuses them as links are supposed to go somewhere. It’s a pet hate of mine and has been one of the top usability mistakes since year dot. A link should always go somewhere; that’s how the web was built.
I used a strong element (which you will have to configure your php to output for the current page) and that means no classes are necessary in that structure as it is the only strong element present and you can apply styling to it easily.
If you use includes for your menu and can’t convert the current item to a strong element then you will instead need to add a class to the list or the anchor and apply those styles above.