Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

italic text in Dreamweaver also bold - want only italic

Community Beginner ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

I tried lower case "I" tags around text, tried "em" tags around text, in both cases text was bold as well as italic.

Also tried using CSS and getting the same result. Thanks for your help

Views

5.0K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Apr 21, 2017 Apr 21, 2017

Forum wasn't working but this was my post:

I did try an <em> tag around by text but it made it bold as well as italic.

Also tried to use CSS and I am getting the same result:

}

.italictext {

                font-style: italic;

}

<span class="italictext">your text here</span>

Since found the answer - had to add italic versions to webfonts:

<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,300,300italic,600,600italic,700,700italic" rel="stylesheet" type="text/css" />

Votes

Translate
Community Expert ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

What is going on in your CSS and HTML code?

Browser defaults:

     <em> = italic

     <strong> = bold

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

I did try an

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

Forum wasn't working but this was my post:

I did try an <em> tag around by text but it made it bold as well as italic.

Also tried to use CSS and I am getting the same result:

}

.italictext {

                font-style: italic;

}

<span class="italictext">your text here</span>

Since found the answer - had to add italic versions to webfonts:

<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,300,300italic,600,600italic,700,700i..." rel="stylesheet" type="text/css" />

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

Check your css file, if you have applied bold in your css, then any attempt to just make the text italic and normal will not work, unless you apply a specific rule just for that text.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

Forum cut off my answer. Can’t reply online. Did find answer.

Judy Mueller  //  Graphic Designer

[Moderator removed personal info from email signature.]

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

<i> and <em> do not make text bold by default in any browser or in DW's Design or Live Views.

If they are turning bold on you, and those are the only tags you're adding (you aren't trying to add <em> within <h1> tags to get rid of the default bold for example) it would mean there's something either in your <style> tag in the <head> of the page, or in an external .css file that is adding bold to those tags (possibly even a javascript doing it, but that's less likely).

Look for something like this...

i {

     font-weight:bold;

}

...or...

em {

     font-weight:bold;

}

...inside your <style></style> tagset or in your external .css files and remove the font-weight attribute/value set from the selectors.

If you are adding italic to something that has a default bold value, like an <h1> tag, you'd have to remove the bold by using font-weight:normal on the default bold tag's css. Something like this would do the trick...

h1 {

     font-weight:normal;

}

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

LATEST

Thanks folks - Jon I didn't see your post until after I posted most recently.

Forum was not working for me. Solution in last post. Thanks again all.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines