Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-18-2008, 02:45 PM   #1
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
WEBMASTER THREAD: who needs some CSS tips?

Post away!

i am willing to help out if its general questions, not here to fix you entire page
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 02:49 PM   #2
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
quick one:

<link rel="stylesheet" href="www.domain.com/css.css" type="text/css" />
<!--[if lte IE 6]><style type="text/css" media="all">@import "www.domain.com/ie6.css";</style><![endif]-->
<!--[if gt IE 6]><style type="text/css" media="all">@import "www.domain.com/ie7.css";</style><![endif]-->


put this is your header if there is small differences in IE and you need to change up margins etc.

you dont need an entire new style sheet for each new called in css file, you only need to replace the div that are different for ie and ie will read it.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 02:50 PM   #3
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
always use your h1-h6 tags for main titles.

also always put main txt in <p></p> paragraph holders.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 02:51 PM   #4
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
for a repeating style always use <div class=""></div>
for individual divs use <div id=""></div>
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 02:53 PM   #5
jscott
So Fucking Banned
 
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 25,198
can you or somebody help direct me on how i can insert a 950width x 140height header into my asian porn blog -> www.asian-blogs.com please

pretty please
jscott is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 02:54 PM   #6
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
when doing padding and margins use this format:

padding: 10px 5px 5px 5px;

the order goes:
padding: top right bottom left;

when you have a padding of:

padding: 10px 0px 0px 0px;
the "px" is not needed take out the "px" on 0's and it becomes:

padding: 10px 0 0 0;
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 02:57 PM   #7
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by jscott View Post
can you or somebody help direct me on how i can insert a 950width x 140height header into my asian porn blog -> www.asian-blogs.com please

pretty please
i wont go into the page exactly but i am guessing something like this:

in the css file:
#header {
width: 950px;
height:140px;
float:left;
}

if you want to center it:

#header {
width: 950px;
height:140px;
float:left;
margin: 0 auto;
}

if it end up aligning wrong and tucking next to a div do:

#header {
width: 950px;
height:140px;
float:left;
margin: 0 auto;
clear:both;
}

so then in the page its:
<div id="header">content here</div>
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 02:59 PM   #8
jscott
So Fucking Banned
 
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 25,198
thanks Meta Man, i'll try to figure it out based on what you said, in a couple hours (gotta head out now)
thx thx!
jscott is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 03:00 PM   #9
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
proper way to list text:

font: normal 22px Helvetica, arial, sans-serif;

css is all about short form and keeping everything compressed as possible, always think of this when planning out a page.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 03:01 PM   #10
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by jscott View Post
thanks Meta Man, i'll try to figure it out based on what you said, in a couple hours (gotta head out now)
thx thx!
cool once u put it in i can have a look if it doesnt work.

i just cant go through everyone pages for free and do it hehe. but i dont mind helping if its an obvious answer.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 03:01 PM   #11
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
CSS is that newfangled shit that doesn't really work, so real webmasters just make everything 100&#37; flash but they pepper the code with unused variables for SEO purposes.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 03:03 PM   #12
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by GrouchyAdmin View Post
CSS is that newfangled shit that doesn't really work, so real webmasters just make everything 100% flash but they pepper the code with unused variables for SEO purposes.
you have obviously never done a page in proper CSS, it makes a world of difference especially if you are running a CMS system and need to make multiple changes at one time.

html is dead. and anyone still doing there pages in it is behind times.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 03:06 PM   #13
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by MetaMan View Post
html is dead. and anyone still doing there pages in it is behind times.
Oh, you're being serious for the whole thread? I've been using CSS since 2003. I agree that using inline colors, fonts, etc, is stupid for this day and age.

Also, Don't throw away Dean's "IE7", yet.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 03:08 PM   #14
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by GrouchyAdmin View Post
Oh, you're being serious for the whole thread? I've been using CSS since 2003. I agree that using inline colors, fonts, etc, is stupid for this day and age.

Also, Don't throw away Dean's "IE7", yet.
nice! i wasnt to sure if you were being serious, but it honestly makes a world of difference, amazing the kind of things you can accomplish with it.

css is all powerful
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2008, 03:36 PM   #15
Sands
Confirmed User
 
Sands's Avatar
 
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
Quote:
Originally Posted by GrouchyAdmin View Post
Oh, you're being serious for the whole thread? I've been using CSS since 2003. I agree that using inline colors, fonts, etc, is stupid for this day and age.

Also, Don't throw away Dean's "IE7", yet.
Brilliant! I was looking for something that'd help me out with png support on older versions of IE. Much appreciated ese.
Sands is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.