Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 580747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:30:20+00:00 2026-05-13T14:30:20+00:00

I have a short plain text string, which might contain a weblink . I

  • 0

I have a short plain text string, which might contain a weblink. I load it into UIWebView using loadHTMLString and notice that e.g. font style and size are wrong. Can’t find anything else, so I embed text inside ad hoc HTML document with CSS (is this REALLY the only way):

NSString *myHtml = [NSString stringWithFormat:
                    @"<html><head>"
                    "<style type=\"text/css\">"
                    "body{"
                    "font-family: Helvetica;"
                    "font-size: 20px;"
                    "a {color: #FFF;}"
                    "},</style>"
                    "</head><body>%@</body></html>", myText];
[self.myWebView loadHTMLString:myHtml baseURL:nil];    

Problem: Just can’t figure out how to change link style. Tried a {color:#fff;}, *:link{color:#fff;} etc. which don’t even recall anymore. Nothing changed anything about default link look and feel! Not color, not size, not background, nothing!

Any tips how to have any control whatsoever about how links look like? Would using javaScript be the only possibility?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:30:20+00:00Added an answer on May 13, 2026 at 2:30 pm

    You nested the a rule inside the body rule. Move it outside.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to have long and short forms of command line options invoked using
I'm just getting into unit testing, and have written some short tests to check
I have been using Eclipse as an IDE for a short amount of time
I have a TextArea on my website which I write the input into my
I have a short preliminary interview with Microsoft in less than 2 hours. I've
I have a short program that is used exclusively with a remote desktop connection
Does anybody have a short code sample that can be run in the VS
So I have about 10 short css files that I use with mvc app.
To make a long story short I have to use processing in a class
I have a bunch of short videos from my digital cam. i know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.