Need To Bold One Line Of Text Using CSS And The Div Id Tag
Có thể bạn quan tâm
-
- Home
- Questions
- Tags
- Users
- Companies
- Labs
- Jobs
- Discussions
- Collectives
-
Communities for your favorite technologies. Explore all Collectives
- Teams
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Try Teams for free Explore Teams - Teams
-
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 CollectivesTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsGet 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, 4 months ago Modified 11 years, 4 months ago Viewed 1k times -1I 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 4,5782 gold badges30 silver badges43 bronze badges asked Aug 20, 2013 at 15:14 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
2 Answers
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 SasidharanSasidharan 3,7303 gold badges20 silver badges37 bronze badges Add a comment | 0Why 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 levelnislevelnis 7,7056 gold badges40 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
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 discardedSign up or log in
Sign up using Google Sign up using Email and Password SubmitPost as a guest
Name EmailRequired, but never shown
Post Your Answer DiscardBy 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
- The ghost jobs haunting your career search
- Breaking up is hard to do: Chunking in RAG applications
- Featured on Meta
- The December 2024 Community Asks Sprint has been moved to March 2025 (and...
- Stack Overflow Jobs is expanding to more countries
Linked
6 Padding not working when using <section> tag in IERelated
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
- How to generate and list all possible six-digit numbers that meet the specified criteria using the given digits?
- Why are my giant carnivorous plants so aggressive towards escaped prey?
- Nonograms that require more than single-line logic
- Elementary consequences of famous technical theorems and/or conjectures
- Does enabling FILESTREAM for file I/O access improve performance and manageability in handling file data?
- How is "why should" different from "why do"?
- expl3: fully expandable reformatting of comma-delimited text
- Can the circles fit inside the triangle?
- Is there precedent for a language that allows the "early return" pattern to go between function call boundaries?
- Does it make sense to create a confidence interval referencing the Z-distribution if we know the population distribution isn't normal?
- Beamer: How to align inside equations without messing up cross-references and the table of contents?
- Spotify's repository for Debian has outdated keys
- How can I create TikZ annotations with arrows and braces for parts of a formula?
- Symmetrically scale object along profile on a single axis
- Which is the default butter in the US?
- Ubuntu reboot log question
- Inverse of Sums of Squares and Cross Products (SSCP) matrix
- The power of Harrison's order
- Why Are Guns Called 'Biscuits' In America?
- After 4 rounds of interviews the salary range is lower than expected even when I shared my current situation
- How may I get an unlimited array of parameters, to be checked with ifundefined?
- What's the difference (if any) between "self" and "consciousness"?
- Low impedance rail to rail logic output implementation?
- How can I make frozen yoghurt in a Cuisinart 2-quart freezer bowl-style machine if the mixture is too thick for it to churn?
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
lang-htmlTừ khóa » Html Bold Line
-
HTML Text Formatting - W3Schools
-
How To Draw A Bold Horizontal Line In Html\ Code Example
-
How To Bold, Italicize & Format Text In HTML - HubSpot Blog
-
How To Make Bold Text HTML - Career Karma
-
How To Make Text Bold In HTML? - Tutorialspoint
-
Example: Bold, Italics, Case, And Line Height - HTML Dog
-
HTML - Bold - Tizag Tutorials
-
HTML Tutorial => Bold, Italic, And Underline
-
How To Highlight The First Line Of A Paragraph - Learn Web Development
-
Markdown For Jupyter Notebooks Cheatsheet - IBM
-
Font-weight - CSS: Cascading Style Sheets - MDN Web Docs
-
[PDF] Marking Up With HTML Tags For Bold, Italic, And Underline An HTML ...
-
Basic Syntax - Markdown Guide
-
How To Style A Horizontal Line - W3docs