News:

Create A Forum Installed

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

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile

Badges: (View All)
Linux User Mobile User Level 5
[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

Badges: (View All)
Topic Starter Level 1 First Post
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

Badges: (View All)
Linux User Mobile User Level 5
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

Badges: (View All)
Topic Starter Level 1 First Post
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
14973 Views
Last post November 27, 2014, 04:24:38 am
by Agent Moose
2 Replies
1696 Views
Last post August 08, 2010, 03:41:46 pm
by Thornton136
5 Replies
3539 Views
Last post July 19, 2020, 05:59:23 am
by Cobra C
2 Replies
420 Views
Last post March 27, 2018, 02:53:06 am
by Ethacon
2 Replies
330 Views
Last post September 12, 2020, 08:27:43 pm
by kernelpanic