/    Sign up×
Community /Pin to ProfileBookmark

This is probably really easy, but…

…nothing is easy for me! I’m really new at this. How can I put text next to a header tag like <h2> ? Is there a way to keep it from skipping down a line?

Thanks!

Rebecca

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@bfsogFeb 24.2006 — <i>
</i>&lt;html&gt;

&lt;head&gt;

&lt;style type="text/css" media="screen"&gt;
&lt;!--

h2 { display: inline; }

--&gt;
&lt;/style&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;h2&gt;I am on this line..&lt;/h2&gt; So am I!

&lt;/body&gt;

&lt;/html&gt;
Copy linkTweet thisAlerts:
@bluecaterpillarauthorFeb 24.2006 — See there, I knew it would be easy - worked like a charm - thank you!

Rebecca
Copy linkTweet thisAlerts:
@felgallFeb 24.2006 — You shouldn't use block elements as inline elements as that means that you are using the wrong tag in the first place.
Copy linkTweet thisAlerts:
@CharlesFeb 24.2006 — You shouldn't use block elements as inline elements as that means that you are using the wrong tag in the first place.[/QUOTE]How wrong you are. Use H2 elements to designate second level headings and then style them the way you like. Inline H2s sound a little weird, but I use inline H4s all the time.

Just be aware, you need to ensure that the page makes sense without the style sheet. I'm thinking that you only want to do this sort of thing at the beginning of a line.
Copy linkTweet thisAlerts:
@bluecaterpillarauthorFeb 24.2006 — I actually just said <h2> as an example - what I'm working on now, I'm using <h4>s.

Felgall, forgive me, my amateurishness is totally showing but I'm willing to learn - I don' t even know what you mean by "block elements" as opposed to "inline elements," unless it's just that block means set apart while inline may share a line... ??

Thanks, bfsog, Felgall & Charles for your help. This is a wonderful resource.
×

Success!

Help @bluecaterpillar spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...