Jump to content
Sign in to follow this  
Muhammad_Bilal

making rectangular callout

Recommended Posts

Salam or Hi @ All,

I'm be dive in a problem which is making the rectangular callout with the help of the css and display '00:00' text in it.

Here's my code to do it.

 

<!DOCTYPE html>

<html>

<head>

<title> Rectangular Callout </title>

<style>

#rectangle {

background:#000;

color:#fff;

position:relative;

display:inline-block;

margin:10px 10px 0 10px;

padding:0;

height:20px;

width:75px;

z-index:9999;

}

#callout {

background:#000;

color:#000;

display:inline-block;

position:relative;

margin:0;

padding:0;

width:9px;

height:7px;

left:35px;

top:-14px;

font-size:16pt;

 

}

</style>

<body>

<div id="rectangle" >

 

</div>

<br />

<div id="callout" >

</div>

</body>

</html>

That's works fine, but I'll be think this is not the best way to do it.

Let tell me how to do it with the css sibling or even more efficient way.

Help is appreciated.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...