/* Define custom fonts */ @font-face { font-family: 'BallparkWeiner'; src: url('fonts/ballpark.eot'); src: url('fonts/ballpark.eot?#iefix') format('embedded-opentype'), url('fonts/ballpark.woff') format('woff'), url('fonts/ballpark.ttf') format('truetype'), url('fonts/ballpark.svg#BallparkWeiner') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Dayrom'; src: url('fonts/dayrom.eot'); src: url('fonts/dayrom.eot?#iefix') format('embedded-opentype'), url('fonts/dayrom.woff') format('woff'), url('fonts/dayrom.ttf') format('truetype'), url('fonts/dayrom.svg#Dayrom') format('svg'); font-weight: normal; font-style: normal; } /* Main elements of the page */ body { background: url('images/back.jpg'); font-family: 'Trebuchet MS', Arial, sans-serif; width: auto; color: #181818; } #main_wrapper { width: 900px; margin: auto; } section h1, footer h1, nav a { font-family: Dayrom, serif; font-weight: normal; text-transform: uppercase; } /* Header */ header { background: url('images/line.png') repeat-x bottom; } #main_title { display: inline-block; } header h1 { font-family: 'BallparkWeiner', serif; font-size: 2.5em; font-weight: normal; } #logo, header h1 { display: inline-block; margin-bottom: 0px; } header h2 { font-family: Dayrom, serif; font-size: 1.1em; margin-top: 0px; font-weight: normal; } /* Navigation */ nav { display: inline-block; width: 830px; text-align: right; } nav a { font-size: 1.3em; color: #181818; padding-bottom: 3px; text-decoration: none; } /* Navigation Bar Start */ #navbar { /* background-color: #333; Black background color */ float:left position: fixed; /* Make it stick/fixed */ top: 250px; /* Hide the navbar 50 px outside of the top view */ /*width: 100%; Full width */ transition: top 0.3s; /* Transition effect when sliding down (and up) */ } /* Navigation Bar Ends */ nav a:hover { color: #760001; border-bottom: 3px solid #760001; } /* Banner */ #banner_image { margin-top: 0px; height: 200px; border-radius: 5px; background: url('images/banner.jpg') no-repeat; position: relative; box-shadow: 0px 4px 4px #1c1a19; margin-bottom: 0px; } /* Body */ article, aside { display: inline-block; vertical-align: top; text-align: justify; } article { width: 625px; margin-right: 15px; padding-top:12px; } .cat_icon { vertical-align: middle; margin-right: 8px; } article p { font-size: 0.8em; } aside { position: relative; width: 235px; background-color: #706b64; box-shadow: 0px 2px 5px #1c1a19; border-radius: 5px; padding: 10px; color: white; font-size: 0.9em; } #arrow { position: absolute; top: 100px; left: -12px; } #cyberastralogo_picture { text-align: center; } #itforalllogo_picture img { border: 1px solid #181818; } aside img { margin-right: 5px; } /* Footer */ footer { background: url('images/top.png') no-repeat top center, url('images/line.png') repeat-x top, url('images/shadow.png') repeat-x top; padding-top: 25px; width: 900px; margin: auto; } footer p, footer ul { font-size: 0.8em; } footer h1 { font-size: 1.1em; } #tweet, #my_pictures, #my_friends { display: inline-block; vertical-align: top; } #tweet { width: 28%; } #my_pictures { width: 35%; } /* Applied to older versions of Internet Explorer */ /* To activate inline-block positioning */ .old_ie #main_title, .old_ie #logo, .old_ie header h1, .old_ie nav, .old_ie nav li, .old_ie .red_button, .old_ie article, .old_ie aside, .old_ie #tweet, .old_ie #my_pictures, .old_ie #my_friends, .old_ie #my_friends ul { display: inline; zoom: 1; } /* Some other tweaks */ .old_ie section h1, .ie8 section h1 { font-size: 1.1em; } .old_ie footer div, .ie8 footer div { margin-top: 30px; background: url('images/line.png') repeat-x top; }