Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hey guys this is an HTML code and the question is to UNDERLINE the word BONNJOUR and overline AUJORD'HUI, IN CSS.


XML
</style>

</head>

 <body>

 <div>
      <p><span>Bonjour</span> le monde <span>aujourd'hui</span></p>
 </div>


 </body>
</html>
Posted
Updated 28-Mar-15 19:21pm
v3

1 solution

Here:
http://dev.w3.org/csswg/css-text-decor-3.
https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration.

Here you will find the answer to the question: how first span is different from the second one: http://www.w3schools.com/cssref/css_selectors.asp[^].

—SA
 
Share this answer
 
v2
Comments
Member 11563616 29-Mar-15 0:12am    
The teacher said I cannot change the HTML code at all. If you look there are no span classes, so even though I know what i have to input, I do not know how to make ONLY BONJOUR underline..
Improve solution Permalink Posted 1 sec ago
Sergey Alexandrovich Kryukov 29-Mar-15 1:16am    
You should have mention this principal requirement! But...

Isn't that obvious? Use proper CSS selectors: http://www.w3schools.com/cssref/css_selectors.asp.

Look, this is your school exercises aimed to develop you cognitive abilities, inventiveness, and at least the basic documentation-reading skills. If I answer this trivial question, you will loose you last chance to train yourself. I don't want to provide such poor help. Please read on the topic and scratch you head a bit, for your own good.

—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900