/    Sign up×
Community /Pin to ProfileBookmark

How to do a overlap logo over my navigation bar?

Hi guys, so bassicly i’m building a webiste in HTML for my college project, and I need help because I would like to do everything right.

Here is the navigation bar that I have: http://prntscr.com/nl60zq

Please ignore the language because that is my native language and I have to do my project on it.

So I would like to put my round (circle) logo in the center of this navigation bar in the way that half of it is on nav bar and half on the text. Example of that: http://prntscr.com/nl61tg

If needed I will post my HTML and CSS code right here.

Thanks!

to post a comment
CSSHTMLJavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@SempervivumMay 06.2019 — If needed I will post my HTML and CSS code right here.Yes, please do and use code tags:

https://www.bbcode.org/examples/?id=15
Copy linkTweet thisAlerts:
@cootheadMay 06.2019 — Hi there Marco12,

and a warm welcome to these forums. :D

Here is one possible solution for you to try...

``<i>
</i>&lt;!DOCTYPE HTML&gt;
&lt;html lang="en"&gt;
&lt;head&gt;

&lt;meta charset="utf-8"&gt;
&lt;meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"&gt;

&lt;title&gt;untitled document&lt;/title&gt;

&lt;!--&lt;link rel="stylesheet" href="screen.css" media="screen"&gt;--&gt;

&lt;style media="screen"&gt;

body {
background-color: #f9f9f9;
font: 100% / 162% BlinkMacSystemFont, -apple-system, 'Segoe UI', roboto, helvetica, arial, sans-serif;
}

#nav {
display: flex;
border-bottom: 1px solid #999;
background-color: #e3e3e3;
box-shadow: 0 0.25em 0.25em rgba( 0, 0, 0, 0.4 );
}

#nav ul {
width: 33.33%;
padding: 0;
margin: 0;
list-style: none;
text-align: center;
}

#nav li {
display: inline-block;
}

#nav ul a {
display: block;
padding: 1em;
color: #696969;
text-decoration: none;
}

#nav div {
position: relative;
width:33.33%;
}

#nav div a {
position: absolute;
bottom: -48px;
left: calc( 50% - 48px );
border: 1px solid #999;
border-radius: 50%;
box-shadow: 0 0 0.75em rgba( 0, 0, 0, 0.5 );
}

#nav div a img {
display: block;
border-radius: 50%;
}
&lt;/style&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;div id="nav"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#"&gt;menu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;menu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;menu&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div&gt;
&lt;a href="#"&gt;
&lt;img src="https://via.placeholder.com/94x94/cbcbcb/696969?text=Logo" width="94" height="94" alt="site logo"&gt;
&lt;/a&gt;
&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="#"&gt;menu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;menu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;menu&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;<i>
</i>
``


_coothead_
×

Success!

Help @Marco12 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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