Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Heading problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
niksy



Joined: 29 Sep 2003
Posts: 727

PostPosted: 18.05.2005 09:50    Post subject: Heading problem Add user to your forum ignore list Reply with quote

Poslozio sam sve elemente na mjesta gdje hocu, sve super izgleda, samo ceka da se jos uredi Smile: Normalno.

No, kada postavim da mi tekst "Sadrzaj" ima <h1></h1>, ili ako napravim neki paragraf, dogodi se ovo.

Htio bih i da mi i sa headingom bude kao i da ga nema, znaci, da gorna i donja margina gde je "Sadrzaj" budu kao i na prvoj slici. Kako da to napravim?

Evo koda:
Code:
<style type="text/css">
body {
   background-color: #00FF66;
}
#wrap {
   background-color:#FFFFFF;
   margin: 0 auto;
   width: 650px;
   border: 3px;
   border-color: #FFCC33;
   border-style: solid;
}
#zaglavlje {
   background-color:#00FFFF;
}
#navigacija {
   background-color:#CC9966;
   width: 150px;
   margin-top:3px;
   float:left;
}
#sadrzaj {
   background-color:#FF33FF;
   margin:3px 0 0 153px;
   width:auto;
}
#podnozje {
   background-color:#CC3333;
   margin:3px 0 0 0;
}
</style>

Code:
<div id="wrap">
   <div id="zaglavlje">Zaglavlje</div>
   <div id="navigacija">Navigacija</div>
   <div id="sadrzaj">Sadrzaj</div>
   <div id="podnozje">Podnozje</div>
</div>
Back to top
View user's profile Send private message Visit poster's website Twitter profile
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 18.05.2005 10:14    Post subject: Re: Heading problem Add user to your forum ignore list Reply with quote

probaj

Code:

h1,p{
 margin: 0px;
 padding: 0px;
}

ti elementi ti imaju neke defaultne margine...

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 18.05.2005 10:21    Post subject: Re: Heading problem Add user to your forum ignore list Reply with quote

carr wrote:
...ti elementi ti imaju neke defaultne margine...


What carr said. Dodao bi samo da se radi o marginu, ne paddingu..

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
niksy



Joined: 29 Sep 2003
Posts: 727

PostPosted: 18.05.2005 20:09    Post subject: Add user to your forum ignore list Reply with quote

Mucho thanks Smile!
Back to top
View user's profile Send private message Visit poster's website Twitter profile
niksy



Joined: 29 Sep 2003
Posts: 727

PostPosted: 19.05.2005 09:06    Post subject: Add user to your forum ignore list Reply with quote

Problems, problems Smile.
Da ne otvaram novi topic, ovdje cu.

Za navigaciju sam koristio liste:
Code:

<div id="navigacija" align="center">
         <li>Izbor 1</li>
         <li>Izbor 2</li>
         <li>Izbor 3</li>
         <li>Izbor 4</li>
         <li>Izbor 5</li>
</div>

Sve super, no ta lista kao da se ne nalazi unutar prvog diva (#wrap): slika. Htio bih da mi podnozje bude potpuno na dnu (ispod navigacije), a sadrzaj po mogucnosti na istom mjestu.
I da, da li da samo koristim <li> ili da ih stavim unutar <ul> ili <ol>?
Back to top
View user's profile Send private message Visit poster's website Twitter profile
lekke



Joined: 17 Jun 2004
Posts: 860
Location: 25th floor

PostPosted: 19.05.2005 09:11    Post subject: Add user to your forum ignore list Reply with quote

Niksy, LI element je list item. On mora pripadati ili ordered ili unordered listi. Dakle tvoj kod mora izgledati tako da iza DIV-a ide ili UL ili OL, pa onda unutar iste LI elementi

_________________
You need more bass.
Back to top
View user's profile Send private message
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 19.05.2005 09:12    Post subject: Add user to your forum ignore list Reply with quote

Ubaci svoju listu prije podnožja, a podnožju u CSS-u dodaj

Code:
clear: both;


Liste? http://www.w3schools.com/html/html_lists.asp + W3C Validator is your friend.

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group