<!DOCTYPE html>
<html dir="rtl">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<style>
* {box-sizing: border-box}
body {font-family: "Lato", sans-serif;}
/* Style the tab */
.tab {
float: right;
border: 1px solid #ccc;
background-color: #f1f1f1;
width: 30%;
height: 300px;
letter-spacing: 0;
}
/* Style the buttons inside the tab */
.tab button {
display: block;
background-color: inherit;
color: black;
padding: 22px 16px;
width: 100%;
border: none;
outline: none;
text-align: right;
cursor: pointer;
font-size: 17px;
letter-spacing: 0;
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: #ddd;
}
/* Create an active/current "tab button" class */
.tab button.active {
background-color: #ccc;
}
/* Style the tab content */
.tabcontent {
float: left;
padding: 0px 12px;
border: 1px solid #ccc;
width: 70%;
border-left: none;
height: 300px;
display: none;
}
/* Clear floats after the tab */
.clearfix::after {
content: "";
clear: both;
display: table;
}
</style>
</head>
<body>
<h2>خدماتنا</h2>
<p>نفخر بأن نقدم لكم سلسلة من خدماتنا كما يلي أدناه:</p>
<div dir="RTL">
<div class="tab">
<button class="tablinks" onmouseover="openService(event, 'الترجمة')">الترجمة</button>
<button class="tablinks" onmouseover="openService(event, 'الدورات')">الدورات</button>
<button class="tablinks" onmouseover="openService(event, 'الخدمات البحثية')">الخدمات البحثية</button>
</div>
<div id="الترجمة" class="tabcontent">
<h3>خدمات الترجمة</h3>
<p>نقدم خدمات الترجمة للغات التالية: العربية، اليابانية، الانجليزية، الكورية.</p>
</div>
<div id="الدورات" class="tabcontent">
<h3>الدورات التدريبية</h3>
<p>يسرنا تقديم دورات تدريبية متنوعة فى مجالات متعددة وفى مقرنا أو علي منصتنا التعليمية أو وفق النظام الهجين (المقر+ المنصة)</p>
</div>
<div id="الخدمات البحثية" class="tabcontent">
<h3>خدمات متنوعة للباحثين</h3>
<p>.نقدم للباحثين خدمات متنوعة كما يلي أدناه وفيما لا يتعارض مع القوانين واللوائح</p>
</div>
<div class="clearfix"></div>
<script>
function openService(evt, serviceName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(serviceName).style.display = "block";
evt.currentTarget.className += " active";
}
</script>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.