Web sayfasına Justify uygulanmıyor

anilcank

Centipat
Katılım
10 Kasım 2022
Mesajlar
24
Daha fazla  
Cinsiyet
Erkek
Paragraflarımın satır sonları justify ile eşitlenmiyor. Kodu CSS'den mi, yoksa HTML'den mi değiştirmem lazım? Satır sonlarını eşitleyebilmem için ne yapabilirim?
 

Dosya Ekleri

  • 1668114417839.jpeg
    1668114417839.jpeg
    339,5 KB · Görüntüleme: 39
body {
background: url(../images/bg-body.gif) repeat center;
color: #9CCC65;
font-family: 'Bahnschrift SemiBold';
font-size: 15px;
margin: 0;
min-width: 950px;
padding: 0;
}

a {
outline: none;
}

img {
border: 0;
}

p a {
color: #80662B;
font-style: normal;
}

#header {
background: url(../images/bg-header.gif) repeat-x top center;
height: 106px;
overflow: hidden;
width: 100%;
}

#header div {
margin: 0 auto;
overflow: hidden;
width: 950px;
}

#header div div#logo {
float: left;
width: auto;
margin:0 55px 0 0;
}

#header div div#navigation {


font-family: 'Bahnschrift SemiBold';
float: right;
height: auto;
line-height: 50px;
margin-top: 27px;
text-transform: capitalize;
width: 614px;
}

#header div div#navigation div {
background: url(../images/bg-navigation-left-curve.gif) no-repeat left top;
padding-left: 4px;
height: 63px;
width: auto;
}

#header div div#navigation div ul {
background: url(../images/bg-navigation.gif) repeat-x;
clear: both;
float: left;
height: 63px;
list-style: none;
margin: 0;
padding: 0;
min-width: 600px;
}

#header div div#navigation div ul li:first-child {
background: none;
}

#header div div#navigation div ul li {
background: url(../images/separator-navigation.gif) no-repeat center left;
float: left;
padding: 0 30px;
}

#header div div#navigation div ul li a {
color: #9CCC65;
text-decoration: none;
text-shadow: 1px 1px 0 #006400;
}

#header div div#navigation div ul li.current a,
#header div div#navigation div ul li a:hover {
color: #2e5306;
text-shadow: 1px 1px 0 #9CCC65;
}

#content {
background: url(../images/çim.gif) repeat top center;
height: auto;
width: 100%;
}

#content div#section {

height: 365px;
margin: 0 auto;
overflow: hidden;
padding: 35px 0 0;
position: relative;
width: 950px;
}

#content div#section div, #content div.section div {
background: none;
float: left;
margin-left: 0;
padding-top: 0;
width: 286px;
}

#content div#section div h1 {
color: #808000;
font-family: 'Bahnschrift SemiBold';
font-size: 45px;
line-height: 34px;
margin: 0;
padding: 0;
text-shadow: 1px 1px 0 #006400;
width: auto;
}

#content div#section div p {
line-height: 21px;
margin: 0;
padding: 15px 0 0;
text-align: justify;
text-shadow: 1px 1px 0 #f4dcb6;
width: auto;
}

#content div#section div span {
background: none;
display: block;
height: auto;
font-size: 14px;
left: 0;
margin-top: 17px;
position: static;
top: 0;
width: auto;
}

#content div#section div span a {
background: url(../images/sprites-buttons.gif) no-repeat 0 -303px;
color: #fdfdfb;
display: inline-block;
font-family: 'Bahnschrift SemiBold';
font-size: 18px;
height: 38px;
line-height: 37px;
margin-left: 0px;
text-align: center;
text-decoration: none;
text-shadow: 1px 1px 0 #216b20;
width: 136px;
}

#content div#section div span a.first {
margin-left: 0;
}

#content div#section div#figure {
margin-left: 51px;
width: 612px;
}

#content div#section div#figure img,
#content div div img, #content div#featured ul li img {
border: 0px double #9CCC65;
}
#content div#section div#figure span {

display: block;
height: 13px;
margin-top: -6px;
width: 612px;
}

#content div#featured ul li p a {
color: #525252;
}

#content div#section span.background {

top: 328px;
display: block;
height: 37px;
position: relative;
width: 950px;
}

#content div#featured {
background: url(../images/altarka.png) repeat-x top center;
height: 356px;
padding: 35px 0;
width: 100%;
}

#content div#featured ul {
color: #525252;
list-style: none;
margin: 0 auto;
overflow: hidden;
padding: 0;
width: 950px;
}

#content div#featured ul li {
float: left;
margin-left: 53px;
width: 281px;
}

#content div#featured ul li.first {
margin-left: 0;
}

#content div#featured ul li span {
background: url(../images/bg-featured.png) no-repeat center;
display: block;
height: 15px;
margin-top: -6px;
width: 281px;
}

#content div#featured ul li a.link {
background: url(../images/sprites-buttons.gif) no-repeat 0 -166px;
color: #FDFDFB;
display: block;
height: 43px;
font-family: 'Bahnschrift SemiBold';
font-size: 18px;
line-height: 43px;
margin-top: 25px;
text-align: center;
text-decoration: none;
text-shadow: 1px 1px 0 #216B20;
width: 281px;
}

#content div#featured ul li p {
line-height: 21px;
margin-top: 15px;
padding-bottom: 5px;
text-align: left;
text-shadow: 1px 1px 0 #e8e6e7;
}

#content div {
margin: 0 auto;
padding: 0 0 40px;
width: 950px;
}

#content div div, #content div.section div.figure {

float: right;
margin-left: 45px;
padding: 35px 0 0;
position: relative;
width: 614px;
}

#content div div span {

display: block;
height: 16px;
top: 347px;
position: absolute;
right: 0;
width: 201px;
}

#content div p {
line-height: 21px;
margin: 0;
padding-bottom: 25px;
text-align: left;
text-shadow: 1px 1px 0 #F4DCB6;
}

#content div b {
color: #816221;
text-shadow: 1px 1px 0 #F4DCB6;
}

#content div b.first {
display: block;
padding-top: 33px;
}

#content div#blog h1 {
font-family: 'Bahnschrift SemiBold';
font-size: 18px;
margin: 0;
padding: 30px 0;
}

#content div#blog h1 a {
color: #73541b;
display: block;
text-decoration: none;
text-shadow: 1px 1px 0 #c8b57d;
}

#content div#blog h1 a:hover {
color: #2e5306;
text-shadow: 1px 1px 0 #f2fcd9;
}

#content div#blog p {
padding-bottom: 0;
margin: 0;
text-align: justify;
}

#content div h2 {
color: #808000;
font-family: 'Bahnschrift SemiBold';
font-size: 25px;
margin: 0;
padding: 25px 0 10px;
text-shadow: 1px 1px 0 #006400
}

#content div h3 {
color: #808000;
font-family: 'Bahnschrift SemiBold';
font-size: 23px;
margin: 0;
padding: 25px 0 10px;
text-shadow: 1px 1px 0 #006400
}

#content div h2 span {
font-size: 20px;
font-weight: normal;
}

#content div.section {
padding-bottom: 20px;
overflow: hidden;
}

#content div.section h4 {
color: #73541B;
font-family: 'Bahnschrift SemiBold';
font-size: 18px;
line-height: 20px;
padding-top: 30px;
text-shadow: 1px 1px 0 #C8B57D;
}

#content div.section div {
padding-top: 10px;
}

#content div.section div a {
background: url(../images/sprites-buttons.gif) no-repeat center -105px;
color: #9CCC65;
display: block;
font-family: 'Bahnschrift SemiBold';
font-size: 16px;
line-height: 50px;
margin-top: 25px;
text-align: center;
text-decoration: none;
text-shadow: none;
width: 283px;
}

#content div.section div a.selected, #content div.section div a:hover {
background: url(../images/sprites-buttons.gif) no-repeat 0 0;
color: #006400;
text-shadow: 1px 1px 0 #216B20;
}

#content div.section div.figure a {
background: none;
margin-top: 0;
}

#content div form {
margin: 0 auto;
width: 825px;
}

#content div table {
margin-top: 30px;
}

#content div form table tr td input#name,
#content div form table tr td input#email,
#content div form table tr td input#subject {
background: url(../images/sprites-inputs.gif) no-repeat 0 -82px;
border: 0;
color: #FFFEFF;
font-family:Bahnschrift SemiBold;
font-size: 12px;
height: 38px;
margin-left: 20px;
padding: 0 5px;
width: 259px;
}

#content div form table tr td textarea#message,
#content div form table tr td label.newsletter {
margin-left: 20px;
}

#content div form table tr td input#send {
background: url(../images/sprites-buttons.gif) no-repeat 0 -258px;
border: 0;
height: 36px;
margin-left: 193px;
width: 96px;
}

#content div form table td {
padding: 10px 0
}

#content div table tr td textarea {
resize: none;
background: url(../images/text-area.jpg) no-repeat;
border: 0;
color: #FFFEFF;
font-family:Bahnschrift SemiBold;
font-size: 25px;
height: 184px;
padding: 5px;
width: 715px;
}

#content div table tr td label span,
#content div form div fieldset label span {
color: #808000;
font-family:Bahnschrift SemiBold;
font-size: 12px;
}

#content div form div fieldset label span {
background: none;
display: inline;
height: auto;
position: static;
width: auto;
}

#content div table tr td label.email {
font-weight: bold;
margin-left: 115px;
padding-top: 5px;
vertical-align: sub;
}

#content div table tr td label input#newsletter,
#content div table tr td label input#terms,
#content div form div fieldset div label input#newsletter,
#content div form div fieldset div label input#terms,
#content div form div fieldset div label input#shipping,
#content div form div fieldset div label input#saveas {
vertical-align: middle;
}

#content div table tr td.message {
vertical-align: top;
}

#content div form#register {
margin-top: 30px;
overflow: hidden;
width: auto;
}

#content div form div {
background: url(../images/bg-form.jpg) no-repeat;
float: left;
height: 396px;
margin: 0 0 0 24px;
padding: 0;
width: 463px;
}

#content div form div.first {
margin-left: 0;
}

#content div form div fieldset {
border: 0;
margin: 20px auto;
width: 386px;
}

#content div form div fieldset input.inputtext {
background: url(../images/sprites-inputs.gif) no-repeat 0 -42px;
border: 0;
height: 31px;
margin: 10px 0;
padding: 0 5px;
width: 376px;
}

#content div form div fieldset input#city {
background: url(../images/sprites-inputs.gif) no-repeat 0 0;
border: 0;
height: 32px;
margin: 10px 0;
padding: 0 5px;
width: 172px;
}

#content div form div fieldset label.zipcode {
margin-left: 168px;
}

#content div form div fieldset input#zipcode {
background: url(../images/sprites-inputs.gif) no-repeat 0 0;
border: 0;
height: 32px;
margin: 0 0 0 15px;
padding: 0 5px;
width: 172px;
}

#content div form div div {
background: none;
float: none;
height: auto;
margin-left: 0;
margin-top: 33px;
width: auto;
}

#content div form div div label.terms {
padding-left: 15px;
}

#content div form input#createaccount {
background: url(../images/sprites-buttons.gif) no-repeat 0 -60px;
border: 0;
float: right;
height: 36px;
margin-top: 30px;
width: 188px;
}

#footer {
background: url(../images/bg-footer.gif) repeat-x left top;
height: 510px;
width: 100%;
}

#footer div {
color: #dadada;
float: none;
height: auto;
margin: 0 auto;
overflow: hidden;
padding-top: 10px;
width: 950px;
}

#footer div div {
float: left;
height: auto;
margin-left: 46px;
width: 286px;
}

#footer div div.first {
margin-left: 0;
}

#footer div div p {
font-size: 12px;
line-height: 18px;
margin: 0;
text-align: justify;
}

#footer div div h3 {
color: #fcfcfc;
font-family: 'Bahnschrift SemiBold';
font-size: 18px;
height: 30px;
margin-bottom: 10px;
}

#footer div div h3 a {
background: url(../images/logo-footer.png) no-repeat;
display: block;
height: 30px;
text-indent: -99999px;
}

#footer div div div {
height: auto;
margin-left: 0;
margin-top: 10px;
}

#footer div div div p {
font-size: 15px;
line-height: 25px;
margin: 0;
}

#footer div div div p span {
color: #a9a9a9;
display: inline;
font-style: normal;
}

#footer div div div a {
display: inline-block;
height: 63px;
margin-left: 44px;
padding-top: 10px;
width: 63px;
}

#footer div div div a.facebook {
background: url(../images/sprites-icon.png) no-repeat 0 9px;
margin-left: 0;
}

#footer div div div a.twitter {
background: url(../images/sprites-icon.png) no-repeat 0 -137px;
}

#footer div div div a.linked-in {
background: url(../images/sprites-icon.png) no-repeat 0 -63px;
}

#footer div div form {
height: 40px;
margin-top: 25px;
overflow: hidden;
}

#footer div div form label {
float: left;
}

#footer div div form input#subscribe {
background: url(../images/sprites-inputs.gif) no-repeat 0 -131px;
border: 0;
color: #ffffff;
height: 29px;
font-family:Bahnschrift SemiBold;
font-size: 12px;
line-height: 29px;
padding: 0 5px;
width: 160px;
}

#footer div div form input.submit {
background: url(../images/sprites-buttons.gif) no-repeat 0 -218px;
border: 0;
float: left;
height: 29px;
margin-left: 12px;
width: 100px;
}

@font-face {
font-family: 'Franklin Gothic Medium';
src: url('../fonts/andika-r-webfont.eot');
src: url('../fonts/andika-r-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/andika-r-webfont.woff') format('woff'),
url('../fonts/andika-r-webfont.ttf') format('truetype'),
url('../fonts/andika-r-webfont.svg#AndikaRegular') format('svg');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'CarterOneRegular';
src: url('../fonts/carterone-webfont.eot');
src: url('../fonts/carterone-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/carterone-webfont.woff') format('woff'),
url('../fonts/carterone-webfont.ttf') format('truetype'),
url('../fonts/carterone-webfont.svg#CarterOneRegular') format('svg');
font-weight: normal;
font-style: normal;
}

CSS'e eklemeniz gerekecek. Eğer mümkünse direkt kodu atar mısınız?

Yorum olarak yanıt verdim. Content satırlarından birtanesi olması gerekiyor.
 
Böyle atarsan daha iyi olur

CSS:
@font-face {
font-family: 'CarterOneRegular';
src: url('../fonts/carterone-webfont.eot');
src: url('../fonts/carterone-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/carterone-webfont.woff') format('woff'),
url('../fonts/carterone-webfont.ttf') format('truetype'),
url('../fonts/carterone-webfont.svg#CarterOneRegular') format('svg');
font-weight: normal;
font-style: normal;
}
 
Böyle atarsan daha iyi olur

CSS:
@font-face {
font-family: 'CarterOneRegular';
src: url('../fonts/carterone-webfont.eot');
src: url('../fonts/carterone-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/carterone-webfont.woff') format('woff'),
url('../fonts/carterone-webfont.ttf') format('truetype'),
url('../fonts/carterone-webfont.svg#CarterOneRegular') format('svg');
font-weight: normal;
font-style: normal;
}
#content div h2 {
color: #808000;
font-family: 'Bahnschrift SemiBold';
font-size: 25px;
margin: 0;
padding: 25px 0 10px;
text-shadow: 1px 1px 0 #006400
}

#content div h3 {
color: #808000;
font-family: 'Bahnschrift SemiBold';
font-size: 23px;
margin: 0;
padding: 25px 0 10px;
text-shadow: 1px 1px 0 #006400
}

#content div h2 span {
font-size: 20px;
font-weight: normal;
}

#content div.section {
padding-bottom: 20px;
overflow: hidden;
}

#content div.section h4 {
color: #73541B;
font-family: 'Bahnschrift SemiBold';
font-size: 18px;
line-height: 20px;
padding-top: 30px;
text-shadow: 1px 1px 0 #C8B57D;
}
 
W3schools ta şöyle bir şey buldum. İlke defa böyle bir özellik olduğunu gördüm.
Ayrıca eğer yeni öğreniyorsanız Flex ve Grid öğrenin float eskide kaldı.
 

Yeni konular

Geri
Yukarı