Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
[CSS] cała treść wyświetlana po lewej stronie w ie
#1
Witam!

Zrobiłem stronę na szablonie css i na komputerze wszystko wyświetlało się prawidłowo. Niestety po wgraniu plików na serwer w IE (zarówno 8 jak i 9) cała treść strony wyświetlana jest po lewej stronie. Dodam, że na FF wszystko jest ok. Znalazłem podobny temat w internecie ale podane tam rozwiązania u mnie nie działają. Zrobiłem nawet osobny css dla IE ale nie wiem co tam zmienić żeby strona wyświetlała się tak jak powinna.
Strona znajduje się pod adresem:
http://www.osk_kalmar.republika.pl/

Poniżej podaję zawartość pliku css
Kod:
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0px;
    background: #002F43 url(images/bg01.jpg) repeat-x;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #B9B9B9;
}

h1, h2, h3 {
    margin-bottom: 1.5em;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.4em;
}

h3 {
    font-size: 1em;
}

p, ul, ol {
    margin-bottom: 1.5em;
    line-height: 180%;
}

ul, ol {
    margin-left: 3em;
}

blockquote {
    margin-left: 3em;
    margin-right: 3em;
}

a {
    color: #8AC800;
}

a:hover {
    text-decoration: none;
}

strong {
    color: #D7D7D7;
}

img.left {
    float: left;
    margin: 5px 25px 0px 0px;
}

img.right {
    float: right;
    margin: 5px 0px 0px 25px;
}

/* Background */

#bg1 {
    background: url(images/bg02.jpg) no-repeat center top;
}

#bg2 {
    background: url(images/bg03.jpg) no-repeat center top;
}

#bg3 {
    background: url(images/bg04.jpg) repeat-y center top;
}

#bg4 {
    background: url(images/bg05.jpg) no-repeat center top;
}

#bg5 {
    background: url(images/bg06.jpg) no-repeat center bottom;
}

/* Header */

#header {
    width: 900px;
    height: 145px;
    margin: 0px auto;
    text-transform: lowercase;
    color: #FFFFFF;
}

#header h1 {
    float: left;
    margin: 0px;
    padding: 70px 0px 0px 25px;
    font-size: 40px;
}

#header h1 sup {
    font-weight: normal;
}

#header h2 {
    float: right;
    margin: 0px;
    padding: 95px 25px 0px 0px;
    font-size: 14px;
}

#header a {
    text-decoration: none;
    color: #FFFFFF;
}

/* Header2 */

#header2 {
    width: 900px;
    height: 88px;
    margin: 0px auto;
}

/* Menu */

#menu {
    float: left;
}

#menu ul {
    margin: 0px;
    padding: 34px 0px 0px 0px;
    list-style: none;
    text-transform: lowercase;
}

#menu li {
    float: left;
}

#menu a {
    padding-left: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
}

/* Search */

#search {
    float: right;
}

#search form {
    margin: 0px;
    padding: 35px 80px 0px 0px;
}

#search fieldset {
    margin: 0px;
    padding: 0px;
    border: none;
}

#search input.text {
    width: 160px;
    background: none;
    border: none;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #AEC38B;
}

#search input.button {
    display: none;
}

/* Page */

#page {
    width: 846px;
    margin: 0px auto;
    padding: 40px 0px 0px 0px;
    
}



/* Content */

#content {
    float: left;
    width: 583px;
    
    
}

.post {
}

.post .title {
    height: 49px;
    background: url(images/img02.gif) no-repeat;
}

.post .title h2 {
    float: left;
    padding: 12px 0px 0px 24px;
    font-size: 24px;
    text-transform: lowercase;
}

.post .title h2 a {
    text-decoration: none;
    color: #FFFFFF;
}

.post .title h2 a:hover {
    color: #8AC800;
}

.post .title p {
    float: right;
    padding: 12px 24px 0px 0px;
    font-size: 15px;
    font-weight: bold;
    color: #343434;
}

.post .entry {
    padding: 30px 23px 0px 23px;
}

.post .meta {
    height: 70px;
    clear: left;
    margin: 0px 23px;
    padding: 15px 0px 0px 0px;
    border-top: 1px solid #262626;
}

.post .meta .credit {
    float: left;
}

.post .meta .links {
    float: right;
}

.post .meta .links .more {
    padding-left: 17px;
    background: url(images/img05.gif) no-repeat left center;
}

.post .meta .links .comments {
    padding-left: 19px;
    background: url(images/img04.gif) no-repeat left center;
}

/* Sidebar */

#sidebar {
    float: right;
    width: 236px;
}

#sidebar ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

#sidebar li {
    background: url(images/img03.gif) no-repeat;
    padding: 0px 23px 20px 23px;
}

#sidebar li ul {
}

#sidebar li li {
    padding: 8px 0px;
    background: none;
    border-bottom: 1px solid #262626;
}

#sidebar h2 {
    margin: 0px;
    padding: 16px 0px 30px 0px;
    text-transform: lowercase;
    font-size: 14px;
    color: #FFFFFF;
}

/* Footer */

#footer {
}

#footer p {
    margin: 0px;
    padding: 20px 0px;
    text-align: center;
    text-transform: lowercase;
    color: #566D77;
}

#footer a {
    color: #8097A1;
}

Z góry dziękuję za wszelkie wskazówki.

ZD
Odpowiedz
#2
Jak się korzysta ze śmieciowych serwerów to tak jest.

Zobacz sobie w źródło strony na sam początek. Wątpię żeś sobie to tam dopisał. Spam, reklamy albo wirus!
Odpowiedz
#3
(21-12-2012, 23:14)Kartofelek napisał(a): Jak się korzysta ze śmieciowych serwerów to tak jest.

Zobacz sobie w źródło strony na sam początek. Wątpię żeś sobie to tam dopisał. Spam, reklamy albo wirus!

To zapewne ten pasek z reklamą, który wyświetla się po prawej stronie po wczytaniu strony. Nie mam jednak możliwości usunięcia tego a to na jakim serwerze umieszczona jest strona nie zależy ode mnie. Ja miałem tylko zrobić tą stronę.
Poniżej podaję jeszcze kod do hacka IE. Dodałem tam wartości text-align: center; w body i text-align: left; margin-left: auto; margin-right: auto; w content. Ktoś na tym forum miał podobny problem i to pomogło. U mnie niestety nie.
Kod:
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0px auto;
    background: #002F43 url(images/bg01.jpg) repeat-x;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #B9B9B9;
    text-align: center;
    
}

h1, h2, h3 {
    margin-bottom: 1.5em;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.4em;
}

h3 {
    font-size: 1em;
}

p, ul, ol {
    margin-bottom: 1.5em;
    line-height: 180%;
}

ul, ol {
    margin-left: 3em;
}

blockquote {
    margin-left: 3em;
    margin-right: 3em;
}

a {
    color: #8AC800;
}

a:hover {
    text-decoration: none;
}

strong {
    color: #D7D7D7;
}

img.left {
    float: left;
    margin: 5px 25px 0px 0px;
}

img.right {
    float: right;
    margin: 5px 0px 0px 25px;
}

/* Background */

#bg1 {
    background: url(images/bg02.jpg) no-repeat center top;
}

#bg2 {
    background: url(images/bg03.jpg) no-repeat center top;
}

#bg3 {
    background: url(images/bg04.jpg) repeat-y center top;
}

#bg4 {
    background: url(images/bg05.jpg) no-repeat center top;
}

#bg5 {
    background: url(images/bg06.jpg) no-repeat center bottom;
}

/* Header */

#header {
    width: 900px;
    height: 145px;
    margin: 0px auto;
    text-transform: lowercase;
    color: #FFFFFF;
}

#header h1 {
    float: left;
    margin: 0px;
    padding: 70px 0px 0px 25px;
    font-size: 40px;
}

#header h1 sup {
    font-weight: normal;
}

#header h2 {
    float: right;
    margin: 0px;
    padding: 95px 25px 0px 0px;
    font-size: 14px;
}

#header a {
    text-decoration: none;
    color: #FFFFFF;
}

/* Header2 */

#header2 {
    width: 900px;
    height: 88px;
    margin: 0px auto;
}

/* Menu */

#menu {
    float: left;
}

#menu ul {
    margin: 0px;
    padding: 34px 0px 0px 0px;
    list-style: none;
    text-transform: lowercase;
}

#menu li {
    float: left;
}

#menu a {
    padding-left: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
}

/* Search */

#search {
    float: right;
}

#search form {
    margin: 0px;
    padding: 35px 80px 0px 0px;
}

#search fieldset {
    margin: 0px;
    padding: 0px;
    border: none;
}

#search input.text {
    width: 160px;
    background: none;
    border: none;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #AEC38B;
}

#search input.button {
    display: none;
}

/* Page */

#page {
    width: 846px;
    padding: 40px 0px 0px 0px;
    margin: 0px auto;
    
}

/* Content */

#content {
    
    width: 583px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    
}

.post {
}

.post .title {
    height: 49px;
    background: url(images/img02.gif) no-repeat;
}

.post .title h2 {
    float: left;
    padding: 12px 0px 0px 24px;
    font-size: 24px;
    text-transform: lowercase;
}

.post .title h2 a {
    text-decoration: none;
    color: #FFFFFF;
}

.post .title h2 a:hover {
    color: #8AC800;
}

.post .title p {
    float: right;
    padding: 12px 24px 0px 0px;
    font-size: 15px;
    font-weight: bold;
    color: #343434;
}

.post .entry {
    padding: 30px 23px 0px 23px;
}

.post .meta {
    height: 70px;
    clear: left;
    margin: 0px 23px;
    padding: 15px 0px 0px 0px;
    border-top: 1px solid #262626;
}

.post .meta .credit {
    float: left;
}

.post .meta .links {
    float: right;
}

.post .meta .links .more {
    padding-left: 17px;
    background: url(images/img05.gif) no-repeat left center;
}

.post .meta .links .comments {
    padding-left: 19px;
    background: url(images/img04.gif) no-repeat left center;
}

/* Sidebar */

#sidebar {
    float: right;
    width: 236px;
}

#sidebar ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

#sidebar li {
    background: url(images/img03.gif) no-repeat;
    padding: 0px 23px 20px 23px;
}

#sidebar li ul {
}

#sidebar li li {
    padding: 8px 0px;
    background: none;
    border-bottom: 1px solid #262626;
}

#sidebar h2 {
    margin: 0px;
    padding: 16px 0px 30px 0px;
    text-transform: lowercase;
    font-size: 14px;
    color: #FFFFFF;
}

/* Footer */

#footer {
}

#footer p {
    margin: 0px;
    padding: 20px 0px;
    text-align: center;
    text-transform: lowercase;
    color: #566D77;
}

#footer a {
    color: #8097A1;
}
Odpowiedz
#4
Już po temacie. republika.pl to faktycznie śmieciowy serwer. Prztestowałem stronę na cba.pl (również darmowy) i działa bez problemu.

Pozdrawiam
ZD
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  Automatyczne aktualizowanie danych z serwera na stronie bm1209 19 16,313 01-07-2016, 19:59
Ostatni post: marekst74
  Tło header na stronie starej jak świat michalecpp 4 5,440 21-06-2016, 15:45
Ostatni post: webminister
  tło w css na całą stronę klimczok 2 3,850 16-02-2015, 17:33
Ostatni post: klimczok
  Nie działają skrypty java na stronie. dymek3r 11 9,450 03-07-2013, 14:38
Ostatni post: Kartofelek
  Problem z galerią na stronie [email protected] 4 4,524 18-03-2013, 16:37
Ostatni post: [email protected]

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl