Page 1 of 1
Elements don't line up
Posted: Tue Jun 14, 2011 1:08 pm
by ashwood
my stylesheet is ok.. everything is in place.. then it will go out of place when you go on a page then you refresh a few times and it goes back in place :S i dont understand it..
edit:
my css is completely w3 validated with no errors
Re: question
Posted: Tue Jun 14, 2011 1:11 pm
by Temor
ashwood wrote:i dont understand
Me neither. Please give a more detailed explanation of what is happening.
Re: question
Posted: Tue Jun 14, 2011 1:16 pm
by ashwood
rite basically everything is inline like it should then ill go to say a profile page and everything goes out of line :S but if i refresh the page like 3 times it goes back inline..
Re: question
Posted: Tue Jun 14, 2011 1:21 pm
by Temor
ashwood wrote:rite basically everything is inline like it should then ill go to say a profile page and everything goes out of line :S but if i refresh the page like 3 times it goes back inline..
I believe that has something to do with the searchbar. It seems to be pushing your themepicker downwards.
Lets take a look at your css shall we?
Re: question
Posted: Tue Jun 14, 2011 1:24 pm
by ashwood
body { background: url('background.png'); z-index: 0; }
* { margin: 0px; }
a img {
border: 0px;
}
.home_wrap {
width: 1000px;
margin-left: auto;
margin-right: auto;
background: #000000;
}
.home_main { padding-top: 3px; padding-right: 5px; padding-left: 5px; padding-bottom: 3px; }
.top_all { height: 45px; border-bottom: 2px solid #000000; }
.top_central {
padding-right: 13px;
padding-bottom: 5px;
padding-top: 5px;
width: 1000px;
margin-left: auto;
margin-right: auto;
}
#tc_left {
float: left;
}
#tc_right {
float: right;
}
.top_central a {
float: left;
padding-left: 10px;
}
.top_search {
width: 900px;
margin-left: auto;
margin-right: auto;
}
.main_cotent {
}
.login_form {
color: #000000;
font-family: arial;
background: url('all_bg.png');
border: 2px solid #000000;
width: 270px;
padding: 8px;
margin-left: auto;
margin-right: auto;
}
#login_error {
color: #cc0000;
font-family: arial;
font-weight: bold;
font-size: 12px;
}
.login_box {
border: 1px solid #faf04b;
}
.login_submit {
border: 1px solid #faf04b;
background: #000000;
color: #faf04b;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 6px;
padding-right: 6px;
margin-top: 4px;
}
.login_process {
background: url('all_bg.png');
height: 95px;
width: 400px;
margin-left: auto;
margin-right: auto;
border: 2px solid #000000;
font-family: arial;
color: #000000;
}
.login_process a{
text-decoration: none;
color: #000000;
}
img a {
border: 0px;
text-decoration: none;
}
.footer_main {
padding-left: 5px;
padding-right: 5px;
margin-top: 3px;
font-family: arial;
}
.footer_main a {
text-decoration: none;
}
#home_left {
float: left;
}
#home_right {
float: right;
}
#footer_left {
float: left;
text-decoration: none;
}
#footer_right {
float: right;
}
.index_search_b {
border-top: 2px solid #000000;
border-bottom: 2px solid #000000;
border-left: 2px solid #000000;
border-right: 2px solid #000000;
}
#index_search {
border: 2px solid #000000;
}
.index_search_sub {
border-top: 2px solid #000000;
border-bottom: 2px solid #000000;
border-right: 2px solid #000000;
border-left: 2px solid #000000;
background: #000000;
color: #ffffff;
padding-top: 1px;
}
#column_left {
float: left;
padding: 10px;
color: #ffffff;
}
#main_right {
float: right;
color: #ffffff;
}
#music_link {
width: 417px;
font-size: 15px;
font-family: arial;
}
#music_link a {
width: 100%;
display: block;
color: #000000;
background: #FFFFFF;
text-decoration: none;
padding: 3px;
}
#music_link a:hover {
width: 100%;
display: block;
color: #000000;
background: #faf04b;
text-decoration: none;
padding: 3px;
}
.page_title {
padding: 5px;
height: 25px;
font-family: arial;
width: 95%;
margin-left: auto;
margin-right: auto;
background: url('background.png');
}
#float_left {
float: left;
}
#float_right {
float: right;
}
#page_left {
float: left;
}
#page_right {
float: right;
width: 364px;
}
.page_title a {
font-family: arial;
width: 95%;
margin-left: auto;
margin-right: auto;
color: #000000;
text-decoration: none;
}
.music_out {
padding-left: 5px;
font-family: arial;
width: 946px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 5px;
margin-left: auto;
margin-right: auto;
color: #000000;
font-size: 13px;
background: #ffffff;
border-left: 2px solid #faf04b;
border-right: 2px solid #faf04b;
border-bottom: 2px solid #faf04b;
}
.music_out a{
text-decoration: none;
}
.change_filter {
padding: 5px;
border: 2px solid #000000;
background: url('all_bg.png');
width: 350px;
margin-left: auto;
margin-right: auto;
}
/* skin changer */
#toggle {
width: 100px;
margin-left: auto;
margin-right: auto;
}
#toggle a{
padding: 5px;
border-left: 2px solid #000000;
border-right: 2px solid #000000;
border-bottom: 2px solid #000000;
z-index: 1;
}
#style_blue {
border: 2px solid #000000;
width: 18px;
background: #559ada;
height: 18px;
margin-right: 5px;
float: left;
}
#style_yellow {
border: 2px solid #000000;
width: 18px;
background: #faf04b;
height: 18px;
margin-right: 5px;
float: left;
}
#style_pink {
border: 2px solid #000000;
width: 18px;
background: #e672d7;
height: 18px;
margin-right: 5px;
float: left;
}
#style_select {
float: left;
margin-right: 6px;
}
/* ADD TO OTHER STYLESHEETS */
#music_dropdown {
width: 915px;
margin-top: 5px;
margin-left: auto;
margin-right: auto;
border: 2px solid #000000;
background: #ffffff;
padding: 10px;
}
#users_online {
font-family: arial;
}
#users_online a {
color: #000000;
}
#users_online a:hover {
color: #666666;
}
#profile_left {
float: left;
}
#profile_right {
float: right;
border: 2px solid #000000;
width: 550px;
}
LOL there you go
Re: Elements don't line up
Posted: Tue Jun 14, 2011 1:28 pm
by Temor
try adding some space underneath the style-picker. Or above the " right " box.
Re: Elements don't line up
Posted: Tue Jun 14, 2011 1:30 pm
by ashwood
you mean like a <br /> or something?
Re: Elements don't line up
Posted: Tue Jun 14, 2011 1:31 pm
by Temor
No, like
margin-top:10px; OR margin-bottom: xx px;
Re: Elements don't line up
Posted: Tue Jun 14, 2011 1:32 pm
by ashwood
that will make the nav bar a bigger height which i dont want..
Re: Elements don't line up
Posted: Tue Jun 14, 2011 1:34 pm
by Temor
Alright. I'm not sure how to help you then. CSS isn't my strongest subject
Re: Elements don't line up
Posted: Tue Jun 14, 2011 3:20 pm
by Tino
No margins do not add to the height. Margins will only push elements away from eachother, basically.
You're confusing margins with padding, which does in fact add to the width/height of an element if applied.
Re: Elements don't line up
Posted: Tue Jun 14, 2011 3:36 pm
by ashwood
so if i do margin it should solve the problem?
Re: Elements don't line up
Posted: Tue Jun 14, 2011 3:42 pm
by Tino
Have you tried it?
Re: Elements don't line up
Posted: Wed Jun 15, 2011 9:47 am
by ashwood
Tino wrote:Have you tried it?
not yet.. trying to get my college work complete as im meant to finish today but due to doing what i love to do ive fell behind.
Re: Elements don't line up
Posted: Wed Jun 15, 2011 11:36 am
by Tino
Well then first try it and report back here if it didn't work.