Need To Bold One Line Of Text Using CSS And The Div Id Tag

    1. Home
    2. Questions
    3. Tags
    4. Users
    5. Companies
    6. Labs
    7. Jobs
    8. Discussions
    9. Collectives
    10. Communities for your favorite technologies. Explore all Collectives

  1. Teams

    Ask questions, find answers and collaborate at work with Stack Overflow for Teams.

    Try Teams for free Explore Teams
  2. Teams
  3. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams

Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Get early access and see previews of new features.

Learn more about Labs Need to bold one line of text using CSS and the div id tag Ask Question Asked 11 years, 3 months ago Modified 11 years, 3 months ago Viewed 1k times -1

I am working on my resume and am trying to bold the name of my degree....'aint workin! Any help would be appreciated.... Here is my html:

<section> <h4>Education</h4> <div id="edccDegree">Associate of Technical Arts</div> Web Application Development</div> Edmonds Community College, August 2013<br> GPA: 3.3 out of 4.0<br>

Here is my CSS:

#edccDegree { font-weight:bold; } Share Improve this question Follow edited Aug 20, 2013 at 15:16 luiges90's user avatar luiges90 4,5582 gold badges30 silver badges42 bronze badges asked Aug 20, 2013 at 15:14 user2700402's user avatar user2700402user2700402 11 silver badge2 bronze badges 6
  • Please balance your HTML tags... Anyway I put your code into jsFiddle and it works well to me. Are you using IE7/8? – luiges90 Commented Aug 20, 2013 at 15:16
  • What's with that extra closing div at Web Application Development</div>? – Cobra_Fast Commented Aug 20, 2013 at 15:18
  • That extra </div> could cause some browsers to choke. – jbabey Commented Aug 20, 2013 at 15:18
  • opening div tag is missing in the 4th line..Why you are using div and then bold style for that.Directly you can use <b></b> tags. – Sasidharan Commented Aug 20, 2013 at 15:20
  • Thanks everyone. I took out the extra closing div tag but still having a problem. I don't want to use any formatting in the html, only in the css......still not working – user2700402 Commented Aug 20, 2013 at 15:43
| Show 1 more comment

2 Answers 2

Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 0 <section> <h4>Education</h4> <b>Associate of Technical Arts</b> <div>Web Application Development</div> Edmonds Community College, August 2013<br> GPA: 3.3 out of 4.0<br> </section> Share Improve this answer Follow answered Aug 20, 2013 at 15:22 Sasidharan's user avatar SasidharanSasidharan 3,7343 gold badges20 silver badges37 bronze badges Add a comment | 0

Why are you wrapping that line in a div? Divs are really structural elements rather than text formatting elements. A strong tag should do what you require unless you have removed that styling already.

<section> <h4>Education</h4> <strong>Associate of Technical Arts</strong><br> Web Application Development<br> Edmonds Community College, August 2013<br> GPA: 3.3 out of 4.0<br> Share Improve this answer Follow answered Aug 20, 2013 at 15:22 levelnis's user avatar levelnislevelnis 7,6956 gold badges39 silver badges61 bronze badges 2
  • I thought I had to wrap it in a div tag to format it in CSS. I thought about using <strong> but am trying to avoid any formatting in the html. – user2700402 Commented Aug 20, 2013 at 15:40
  • Adding a strong tag best conveys the meaning that you are giving to that text. You are wishing to convey emphasis to that text so semantically that is an ideal choice. Divs are better for layout than simply text formatting. – levelnis Commented Aug 20, 2013 at 17:13
Add a comment |

Your Answer

Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid …

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

Draft saved Draft discarded

Sign up or log in

Sign up using Google Sign up using Email and Password Submit

Post as a guest

Name Email

Required, but never shown

Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.

  • The Overflow Blog
  • We'll Be In Touch - A New Podcast From Stack Overflow!
  • The app that fights for your data privacy rights
  • Featured on Meta
  • More network sites to see advertising test
  • We’re (finally!) going to the cloud!
  • Call for testers for an early access release of a Stack Overflow extension...
Visit chat

Linked

6 Padding not working when using <section> tag in IE 164 How do I make text bold in HTML? 4 Div bold and regular 0 Styling Text In Div 4 Creating really bold text with css 0 Is it possible to add bold and Italic in one line is css? 2 How to add two lines of text inside a DIV 5 css bold first line in div 0 Make a div able to display bold words 0 How can I make certain text always appear bold? 0 How do I style this text to be bold?

Hot Network Questions

  • Does the canonical distribution assign probability to microstates or macrostates?
  • Dantzig-Wolfe Decomposition for nurse Scheduling problem
  • Biasing common-source NMOS with active load and fixed Vgs
  • Do switches try to keep track of Ethernet group membership?
  • Gifting $10k to my 17 year old nephew
  • Do the surreal numbers enjoy the transfer principle in ZFC?
  • Brushing pastries with jam
  • Why does glm in R with family binomial(link="log") sometimes require start values?
  • How to protect against fake gold bars?
  • What is the Calvinist/Reformed solution to the Problem of Hell?
  • endless looping in minimax
  • Darlington-driven PNP vs. MOSFET
  • Why exist incorrect completion of projects on the seventh day?
  • Commencement and repeal dates in UK Acts of Parliament - meaning of "From and after"
  • Is partial correctness decidable?
  • Prove or disprove that the envelope of some chords of a conic section is another conic section
  • The Talking Dog's Treats
  • Why constrain the unit type by a generic trait bound in a where clause (as in `where () : Trait<…>`)?
  • Suggestion for catching a flight with short layover in Amsterdam
  • Top loading an Aircraft vs bottom Loading
  • Why don't routers answer ARP requests for IP addresses they can handle even if they aren't assigned that IP address themselves?
  • How many colors do we need?
  • Do referees get to see each other's reports?
  • Advantages of information criteria over cross-validation
more hot questions Question feed Subscribe to RSS Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

lang-html

Từ khóa » Html Bold Line