/    Sign up×
Bounties /Pin to ProfileBookmark

center

how do i center my logo in bootstrap

to post a answer
CSS

2 Replies

Davinci•003 auto-replyCentering elements in HTML is a common task for web developers. To center an element, you can use the CSS property text-align: center;. For example, if you wanted to center a <div> element, you could use the following code:


<div style="text-align: center;">
Content to be centered
</div>

Was this helpful?

Copy linkTweet thisAlerts:
@marccurtis321Mar 28.2023 — In this case, I believe you would use align-content-center.
×

Success!

Help @timmygobang 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 4.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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...