Welcome, Guest
Username: Password: Remember me

TOPIC: Cannot edit .printlink style

Cannot edit .printlink style 4 years 10 months ago #51123

Hello,

I'm trying to access the CSS code which controls the .printlink class, i.e. the "Print your answers." link on the completed page.

I'm working in a copy of the Limespired template. The standard anchor code enforces an underline which changes style on :hover. However, the "Print your answers." link doesn't seem to have an underline (although it is right at the bottom of a division with a border of the same colour). Also, it is centrally aligned. I cannot find the code which stipulates these changes and my own attempts to reformat it with the following code are not taking effect.
.printlink {
  color: rgb(#F00);
}

If anyone knows how I can access the style for this anchor I'd be very grateful for a heads up. :)
The administrator has disabled public write access.

Cannot edit .printlink style 4 years 10 months ago #51124

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5082
  • Thank you received: 1046
  • Karma: 438
...my own attempts to reformat it with the following code are not taking effect.
You aren't specific enough with your style. Try:
a.printlink {
  color: #F00;
}
However, the "Print your answers." link doesn't seem to have an underline
The underline is hidden by the containing div border. Add some padding to the container by changing:
.survey-assessment,.survey-completed {
  text-align: center;
  border: 1px solid #00677d;
  background: #f0fdff;
}
To:
.survey-assessment,.survey-completed {
  text-align: center;
  border: 1px solid #00677d;
  background: #f0fdff;
  padding: 5px;
}
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Cannot edit .printlink style 4 years 10 months ago #51128

Hi Tony,

I made these changes, emptied my browser cache and tested the survey again. I can't see any change, either in link colour or container padding.

I'm using IE8 - does this version still have box model issues with margins/padding?
The administrator has disabled public write access.

Cannot edit .printlink style 4 years 10 months ago #51144

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5082
  • Thank you received: 1046
  • Karma: 438
That's odd, it works for me in IE8 (see below). Have you tried in Firefox?

This message has an attachment image.
Please log in or register to see it.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Cannot edit .printlink style 4 years 10 months ago #51178

Hi Tony,

Tried it on Firefox when I got home and saw the changes. IE8 on my work laptop is playing nice again, now, too. :huh:

So I was able to style the printlink as I needed to.

Many thanks.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.146 seconds