Log In · Register

 

Resource Center Links

This Month's Contests | Hosts Looking for Hostees | Hostees looking for Hosts | BigBookofResources

Submission Guidelines

NEW WEBSITE LAYOUT!
speakerboxx123
post Jun 8 2007, 01:40 PM
Post #1


im with the marching band
*****

Group: Member
Posts: 740
Joined: Dec 2006
Member No: 491,167



thinking about submitting to cB but i need feed back first.

[click for site]

tell me what you think...and if the alignment are messed up tell me.

edit: i just added the !importants. to the layouts so the alignments shouldnt be messed up...
 
 
Start new topic
Replies
YourSuperior
post Jun 8 2007, 02:13 PM
Post #2


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



You can't just add that, then you're making IE not recognize it because of the !important attribute. Okay I'll give you an example maybe you'll understand. Say for instance that I had a banner and it's div id was #banner, and my banner isn't aligned in Firefox but it is in Internet Explorer. So in the beginning, my coding looks like this:

CODE
<style type="text/css">
#banner{
margin-left: 100px;
margin-top: 50px;
}
</style>


So. The the only way to have the banner aligned in Firefox and Internet Explorer, is to add ANOTHER margin-left and raise or lower the pixels to make it aligned. So. The first margin left that has 100px beside it is the margin-left that aligns my banner for Internet Explorer. And the second margin left aligns my banner for Firefox because the only way Firefox would recognize it to make the banner move is using the !important attribute. Because the browsers would basically get confused if I had two margin lefts in my coding with no attribute. So in the end, my coding would look like this:

CODE
<style type="text/css">
#banner{
margin-left: 100px;
margin-left: 110px!important;
margin-top: 50px;
}
</style>


I hope you understood this. _smile.gif
 

Posts in this topic


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: