go41

Where to place code changes in the style sheet for a very specific change

von Joern am 22. Jan. 2010 | Keine Kommentare

Ever since I started writing posts with this theme, I’ve been using a code that makes the links dotted. I like the look better than the normal link formatting.
However, my understanding of css is very VERY basic, so I never figured out how to add the change into the style sheet itself. So, to achieve the effect, I’ve always just added the code into the posts themselves. Here’s what that looks like.
Ever since I started writing posts, I’ve been using a code that makes the links dotted. I like the look better than the normal link formatting.
However, my understanding of css is very VERY basic, so I never figured out how to add the change into the style sheet itself. So, to achieve the effect, I’ve always just added the code into the posts themselves. Here’s what that looks like.
Surely there must be a way to add the change to the style sheet itself. And now I’m wondering how.
Back then, I tried adding the code to the section:
a:link, a:visited {
}
but that didn’t work.
Basically, I’m tired of always copying the code into posts and now that I’ve started using smaller laptop to update the blog, things become more and more cluttered with the screen being so small. What are your thoughts?

(von: Blogchick)

Hier noch 7 weitere Ergebnisse dieses Threads:

Re: Where to place code changes in the style sheet for a very specific change :: Reply by Joern

22. Jan. 2010 (von: Joern)

if you start to change something in style.css undera:link, a:visited { color: #3c78a7; text-decoration:none }a:hover, a:active { color: #3c78a7; text-decoration:underline; }you will get this changes all over your site, let's say you changetext-decorati... Weiterlesen →

Re: Where to place code changes in the style sheet for a very specific change :: Reply by Blogchick

23. Jan. 2010 (von: Blogchick)

That worked out perfectly! Thanks Joern . Weiterlesen →

Re: Where to place code changes in the style sheet for a very specific change :: Reply by Joern

23. Jan. 2010 (von: Joern)

I got at least one more idea how to 'improve' your internal linking by giving the visitors a chance to go directly from one post to the next in single post view. Just display the link to next and previous…

Re: Where to place code changes in the style sheet for a very specific change :: Reply by Blogchick

24. Jan. 2010 (von: Blogchick)

Hi Joern,Thanks for the brilliant suggestion! I think it's a great idea and implemented a slight variation of it. What I didn't like was the location though - putting that code in exactly like that would have the next and…

Re: Where to place code changes in the style sheet for a very specific change :: Reply by Joern

24. Jan. 2010 (von: Joern)

I think yes, you can limit this next and previous to the categories the post is in.I do not know how this works really with posts in asigned to many categories, but this should do it:Code:<div class="navigation">      <div class="right"><?php…

Re: Where to place code changes in the style sheet for a very specific change :: Reply by Blogchick

25. Jan. 2010 (von: Blogchick)

That did it.... now all of the next and previous posts are within the categories. Well, not with the featured and heading categories (which behave funny), but I have no problem with that really.Thanks again . Weiterlesen →

Re: Where to place code changes in the style sheet for a very specific change :: Reply by Joern

5. Feb. 2010 (von: Joern)

what happened to your single.php?I guess you have a /div too much close to the end of this file.The sidebar drops below the content.____________________you find me on Google+, Twitter and Facebook Weiterlesen →

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: