0
Welcome Guest! Login
0 items Join Now

Use Image as Module header instead of text.

  • Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • I'd like to replace the title text of a menu module with an image. I think I should be able to do that by adding a class to the template.css file and then calling the class suffix in the module. However I'd like a little clearer direction.

      If I add this to my css
      .new .h3.module-title {background: url(../images/take_me_here.png) no-repeat 0 1px;}

      Will that produce the change I am looking for or am I totally off base?

      Thanks
      CP
  • Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • It should be no dot in front of h3, so it will be like:
      .new h3.module-title {background: url(../images/take_me_here.png) no-repeat 0 1px;}
  • Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • I changed the code to remove the dot, but I can't get it to work. I called the class "new" in the module settings and nothing changed. I've attached an image showing the menu currently and the way I'd like the title image to display.

      Is there another way to accomplish this?

      attachment=1]menu_note.jpg[/attachment]

      This image is hidden for guests.
      Please log in or register to see it.


      Cody
  • Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • Could you please provide your website link so we can see and check the problem?
  • Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
  • Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • mpideagroup wrote:
      Sure thing http://www.mpideagroup.com/nmsu I'll enable the class suffix again so you can have a look.

      Thanks
      Cody
      Page Not Found error.
      Could you please check the link you provided me?
  • Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Use Image as Module header instead of text.

    Posted 15 years 6 months ago
    • or put that image into the template-folder ... 8)

Time to create page: 0.071 seconds