Reputation: 37
this is what I am running in jsfiddle.
<span style='font-weight:bold'>Summary: </span><p>This is a test.</p>
The paragraph is being generated by a custom html field so I can't really change that. I was wondering if there is a code that I can put before the paragraph that can remove the space between the 2 sentence. I want it to look like
Summary: This is a test.
Upvotes: 0
Views: 61
Reputation: 3
<p>
tag is block element. If you want to display in a same line Set display:inline
to <p>
tag
p{display:inline}
<!DOCTYPE html>
<html>
<head>
<title>untitled</title>
</head>
<body>
<span style='font-weight:bold'>Summary: </span><p>This is a test.</p>
</body>
</html>
Upvotes: 1