Author Topic: [Code/CSS] Add Image Before Navigation  (Read 2025 times)

0 Members and 0 Guests are viewing this topic.

Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile
[Code/CSS] Add Image Before Navigation
« on: August 03, 2010, 01:34:21 am »
Add to CSS (anywhere will do, but I prefer at the very begining, or end, so you know where it is):
Code: [Select]
/* Add Image before Navigation //Created by Agent Moose */
div.navigate_section ul li:first-child:before
{
vertical-align: middle;
content: url("IMAGE URL HERE");
}

This code does exactly what the title says :) Adds an image before the Navigation.

EDIT: Forgot to add copyright :P

Enjoy :)
« Last Edit: August 03, 2010, 05:16:48 pm by Agent Moose »
Code: [Select]
//Hint hint :)
if(/action=profile;u=(.*);sa=UserPage/i.test(location.href)){
var number = RegExp.$1;
var username = (smf_id_member !== "0") ? document.getElementById("upper_section").getElementsByTagName("li")[0].getElementsByTagName("span")[0].innerHTML : void(0);

Share on Facebook Share on Twitter


Offline CreateAForum Codes

  • Newbie
  • *
  • Posts: 2
  • Karma: -1
    • View Profile
Re: [Code/CSS] Add Image Before Navigation
« Reply #1 on: August 03, 2010, 05:04:59 am »
Agent Moose, please turn your PMs on.

Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile
Re: [Code/CSS] Add Image Before Navigation
« Reply #2 on: August 03, 2010, 02:11:41 pm »
Thought I had it set to all members, but it was only for Admins.

Anyway, its all members now.
Code: [Select]
//Hint hint :)
if(/action=profile;u=(.*);sa=UserPage/i.test(location.href)){
var number = RegExp.$1;
var username = (smf_id_member !== "0") ? document.getElementById("upper_section").getElementsByTagName("li")[0].getElementsByTagName("span")[0].innerHTML : void(0);

Offline CreateAForum Codes

  • Newbie
  • *
  • Posts: 2
  • Karma: -1
    • View Profile
Re: [Code/CSS] Add Image Before Navigation
« Reply #3 on: August 03, 2010, 04:41:15 pm »
Thanks, Moose. (:

 

Related Topics

  Subject / Started by Replies Last post
60 Replies
12810 Views
Last post November 27, 2014, 04:24:38 am
by Agent Moose
2 Replies
1128 Views
Last post August 08, 2010, 03:41:46 pm
by Thornton136
4 Replies
2088 Views
Last post August 30, 2013, 10:24:15 pm
by aIURbliS
0 Replies
1245 Views
Last post September 02, 2013, 03:19:40 am
by Silver734
2 Replies
99 Views
Last post March 27, 2018, 02:53:06 am
by Ethacon