0
Welcome Guest! Login
0 items Join Now

how do i layer text over a png in a custom module

  • how do i layer text over a png in a custom module

    Posted 14 years 4 days ago
    • Hello,

      I am looking to create a cutsom module that will act as a kinda button. I have designed png images but need to layer text over it so its nice and searchable for Google.
      At the moment the image sits above the text that I add. I also would like to change the rollover colour of the button to fit with site design.

      Can anyone help?

      Here is a link to the site usbflashdrivesdirect.co.uk

      I have attached an image which is a mock up in photoshop of what I am trying to acheive.
      This image is hidden for guests.
      Please log in or register to see it.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: how do i layer text over a png in a custom module

    Posted 14 years 4 days ago
  • Re: how do i layer text over a png in a custom module

    Posted 14 years 4 days ago
    • Hi

      I read up on yr link and it seems to replace and element for an image?What i want is to simple put text over a image...Could this be done by makling the image background of the module or something?

      thanks
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: how do i layer text over a png in a custom module

    Posted 14 years 4 days ago
    • you could place you text + button into a div ... and give that div a background image via css.
      after that you you move the elements in the div around via position: relative

      The div needs to have dimensions and position: relative too for that.

      Perhaps this helps:
      www.barelyfitz.com/screencast/html-training/css/positioning/
  • Re: how do i layer text over a png in a custom module

    Posted 14 years 4 days ago
    • My html codeing skills are very limited would you have an example of the type of code i would need for such a job.

      And is this still for the custom html module?

      Thanks for your quick replies.
      Adam
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: how do i layer text over a png in a custom module

    Posted 14 years 4 days ago
    • you could send me superadmin-pass/user ...
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: how do i layer text over a png in a custom module

    Posted 14 years 3 days ago
    • Clear your browser cache and see if the accessories does look better now.
      I added some code in the module and adde a few lines at the end of demo.css

      To add the code I disabled the text editor. I strongly recommend to use the RokPad editor.
  • Re: how do i layer text over a png in a custom module

    Posted 14 years 3 days ago
    • Oh my god you have saved my day thanks so much...

      (rt-text-1) can I ask does this control the line spacing of the paragraph as it would be great to tighten the spacing.

      But thanks so much I really appreciate this.

      Adam
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: how do i layer text over a png in a custom module

    Posted 14 years 3 days ago
    • Hi Adam,

      I simplified the code a bit.
      Also check what I added to the demo.css-file.
  • Re: how do i layer text over a png in a custom module

    Posted 14 years 2 days ago
    • Hi Henning,

      Thanks so much I only just noticed you installed the Favicon!haha Which PHP file did you add the code to?

      I would like to know for future reference.

      You have made my day thanks so much...Do you think it would be a really good idea for me to learn html via a course?I'm sure it would make custom modules much easier to produce.

      Adam

Time to create page: 0.062 seconds