You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< title > Lists< / title >
< style >
body {
margin : 0 ;
padding : 0 ;
box-sizing : border-box ;
}
/* css reset */
ul ,
ol ,
li {
margin : 0 ;
padding : 0 ;
list-style : none ;
}
ul li {
list-style : none ;
list-style-type : circle ;
list-style-position : inside ;
list-style-image : url ( 'imageFile' ) ;
/* short hand */
list-style : square inside url ( 'some address' ) ;
}
nav {
background : #efefef ;
padding : 10 px ;
font-size : 14 px ;
}
. menu li {
display : inline ;
margin : 0 5 px ;
}
. menu {
/* برای تراز کردن منو از این استفاده میشود */
text-align : center ;
}
< / style >
< / head >
< body >
<!--
display:
نخوه ی نمایش المان ه ا را برای ما کنترل میکند.
display: inline
میشود عرض مختوای درون آن
display: inline - block
the major difference is that display: inline - block allows to set
a width and height on the element. Also, with display: inline - block ,
the top and bottom margins/paddings are respected, but with display: inline they are not.
برای نشان دادن یا ندادن یک عنصر
display: none;
visiblility: hidden;
تفاوت این دو در این است که زمانی که
display: none
است جایی برای عنصر در نظر گرفته نمیشود.
اما در
visiblity: hidden;
جایی برای عنصر در نظر گرفته میشود اما چیزی نشان داده نمیشود
visiblity: visible;
برای نشان دادن عنصری که حذف شده
display: block or inline;
-->
< nav >
< ul class = "menu" >
< li > < a href = "#" > خانه< / a > < / li >
< li > < a href = "#" > دوره های آموزشی< / a > < / li >
< li > < a href = "#" > تماس با ما< / a > < / li >
< li > < a href = "#" > درباره ما< / a > < / li >
< li > < a href = "#" > پشتیبانی< / a > < / li >
< / ul >
< / nav >
< hr >
< / body >
< / html >