Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-20-2008, 05:30 PM   #1
Ancient Warrior
War Room Member
 
Join Date: Oct 2002
Location: Daytona Beach, Florida
Posts: 433
Thanks: 18
Thanked 0 Times in 0 Posts
Contact Info
Send a message via MSN to pede
Default CSS/HTML : Little Help Please

Hi Guys..

I am just now starting to study CSS. But I need to know how to do something if you would not mind, please.

I need to be able to have a header area like this: New Page 1

But I want it to go edge to edge like CSS. Even making a table at 100%, as you can see, it does not go edge to edge.

I want to have the header at the top, edge to edge and put an iframe at about 75% page width right under it.

Any suggestions would very much be appreciated.

Thank you,
John

pede is offline   Reply With Quote
Old 10-20-2008, 05:42 PM   #2
Designer/Developer
War Room Member
 
Devan Koshal's Avatar
 
Join Date: Sep 2008
Posts: 374
Thanks: 29
Thanked 12 Times in 10 Posts
Default Re: CSS/HTML : Little Help Please

right, thats not the right way to do it.

Word of advice (6 years web design experience here lol) - never use tables to structure a website.

Right for your website use this code

HTML Code:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>

<style>
body
{
background-image:url(images/header-background.jpg);
background-repeat: repeat-x;
background-position:top;
margin: 0 0 0 0;
}
</style>

</head>

<body>

WHAT EVER CONTENT HERE


</body>

</html>
Devan Koshal is offline   Reply With Quote
Old 10-20-2008, 05:48 PM   #3
HyperActive Warrior
 
Join Date: Oct 2007
Posts: 246
Thanks: 13
Thanked 4 Times in 4 Posts
Social Networking View Member's Twitter Profile 
Default Re: CSS/HTML : Little Help Please

What Devan says will work fine. But, I don't think a blanket statement like "never use tables to structure a website." is right - it is a perfectly adequate way to get a website up quickly so for people who only want a temporary site then I see no problem with it.

But, if you are learning to design websites then yes, don't use tables.
ChristianM is offline   Reply With Quote
Old 10-20-2008, 05:50 PM   #4
Designer/Developer
War Room Member
 
Devan Koshal's Avatar
 
Join Date: Sep 2008
Posts: 374
Thanks: 29
Thanked 12 Times in 10 Posts
Default Re: CSS/HTML : Little Help Please

Quote:
Originally Posted by ChristianM View Post
What Devan says will work fine. But, I don't think a blanket statement like "never use tables to structure a website." is right - it is a perfectly adequate way to get a website up quickly so for people who only want a temporary site then I see no problem with it.

But, if you are learning to design websites then yes, don't use tables.
Yeah if its just something quick tables are fine -

also ideally i would move that css code into a stylesheet.css file
Devan Koshal is offline   Reply With Quote
Old 10-20-2008, 05:55 PM   #5
Ancient Warrior
War Room Member
 
Join Date: Oct 2002
Location: Daytona Beach, Florida
Posts: 433
Thanks: 18
Thanked 0 Times in 0 Posts
Contact Info
Send a message via MSN to pede
Default Re: CSS/HTML : Little Help Please

Great... could you please give me the html code to call the css file?

Thanks,
John

pede is offline   Reply With Quote
Old 10-20-2008, 05:57 PM   #6
Designer/Developer
War Room Member
 
Devan Koshal's Avatar
 
Join Date: Sep 2008
Posts: 374
Thanks: 29
Thanked 12 Times in 10 Posts
Default Re: CSS/HTML : Little Help Please

<link href="LOCATION OF STYLESHEET" rel="stylesheet" type="text/css">
Devan Koshal is offline   Reply With Quote
Old 10-20-2008, 06:09 PM   #7
Ancient Warrior
War Room Member
 
Join Date: Oct 2002
Location: Daytona Beach, Florida
Posts: 433
Thanks: 18
Thanked 0 Times in 0 Posts
Contact Info
Send a message via MSN to pede
Default Re: CSS/HTML : Little Help Please

Well... I put the code right above in an html file like this:

<link href="style.css" rel="stylesheet" type="text/css">

I put the css file in the same directory as the test4.html file,
named it style.css

When page loads, it is blank.

If I could just get this right the first time, I could take it from there.

Thanks for all your help,
John

pede is offline   Reply With Quote
Old 10-20-2008, 06:10 PM   #8
Designer/Developer
War Room Member
 
Devan Koshal's Avatar
 
Join Date: Sep 2008
Posts: 374
Thanks: 29
Thanked 12 Times in 10 Posts
Default Re: CSS/HTML : Little Help Please

It should be put in between the <head></head> tags.
Devan Koshal is offline   Reply With Quote
Old 10-20-2008, 06:13 PM   #9
Designer/Developer
War Room Member
 
Devan Koshal's Avatar
 
Join Date: Sep 2008
Posts: 374
Thanks: 29
Thanked 12 Times in 10 Posts
Default Re: CSS/HTML : Little Help Please

Just had a look at your site page use just copy and paste this code.

Main Html Page
HTML Code:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<link href="style.css" rel="stylesheet" type="text/css"> 
</head>

<body>

WHAT EVER CONTENT HERE


</body>

</html>
style.css page

HTML Code:
body
{
background-image:url(images/header-background.jpg);
background-repeat: repeat-x;
background-position:top;
margin: 0 0 0 0;
}
Devan Koshal is offline   Reply With Quote
Old 10-20-2008, 06:22 PM   #10
Ancient Warrior
War Room Member
 
Join Date: Oct 2002
Location: Daytona Beach, Florida
Posts: 433
Thanks: 18
Thanked 0 Times in 0 Posts
Contact Info
Send a message via MSN to pede
Default Re: CSS/HTML : Little Help Please

Something simple I am not doing right, must be.

Here is file that calls the css file:
http://bookmark50.com/test4.htm

Here is the code in the css file:
<style>
body
{
background-image:url(images/header-background.jpg);
background-repeat: repeat-y;
background-position:top;
margin: 0 0 0 0;
}
</style>

pede is offline   Reply With Quote
Old 10-20-2008, 06:24 PM   #11
Ancient Warrior
War Room Member
 
Join Date: Oct 2002
Location: Daytona Beach, Florida
Posts: 433
Thanks: 18
Thanked 0 Times in 0 Posts
Contact Info
Send a message via MSN to pede
Default Re: CSS/HTML : Little Help Please

Something simple I am not doing right, must be.

Here is file that calls the css file:
http://bookmark50.com/test4.htm

Here is the code in the css file:
<style>
body
{
background-image:url(images/header-background.jpg);
background-repeat: repeat-y;
background-position:top;
margin: 0 0 0 0;
}
</style>

pede is offline   Reply With Quote
Old 10-20-2008, 06:25 PM   #12
Ancient Warrior
War Room Member
 
Join Date: Oct 2002
Location: Daytona Beach, Florida
Posts: 433
Thanks: 18
Thanked 0 Times in 0 Posts
Contact Info
Send a message via MSN to pede
Default Re: CSS/HTML : Little Help Please

ok... let me do that

J

pede is offline   Reply With Quote
Old 10-20-2008, 06:25 PM   #13
Designer/Developer
War Room Member
 
Devan Koshal's Avatar
 
Join Date: Sep 2008
Posts: 374
Thanks: 29
Thanked 12 Times in 10 Posts
Default Re: CSS/HTML : Little Help Please

Quote:
Originally Posted by pede View Post
Something simple I am not doing right, must be.

Here is file that calls the css file:
http://bookmark50.com/test4.htm

Here is the code in the css file:
<style>
body
{
background-image:url(images/header-background.jpg);
background-repeat: repeat-y;
background-position:top;
margin: 0 0 0 0;
}
</style>
remove the <style></style>

just have

body
{
background-image:url(images/header-background.jpg);
background-repeat: repeat-y;
background-position:top;
margin: 0 0 0 0;
}

in there
Devan Koshal is offline   Reply With Quote
Old 10-20-2008, 06:28 PM   #14
Ancient Warrior
War Room Member
 
Join Date: Oct 2002
Location: Daytona Beach, Florida
Posts: 433
Thanks: 18
Thanked 0 Times in 0 Posts
Contact Info
Send a message via MSN to pede
Default Re: CSS/HTML : Little Help Please

Devan...

Have a look please....

New Page 1

pede is offline   Reply With Quote
Old 10-20-2008, 06:33 PM   #15
Designer/Developer
War Room Member
 
Devan Koshal's Avatar
 
Join Date: Sep 2008
Posts: 374
Thanks: 29
Thanked 12 Times in 10 Posts
Default Re: CSS/HTML : Little Help Please

Yeah that's right.

now for the content you will need a separate div id call it container, and ad a margin to that div to move it down so the text isnt over lapping the background.
Devan Koshal is offline   Reply With Quote
Old 10-20-2008, 06:39 PM   #16
Ancient Warrior
War Room Member
 
Join Date: Oct 2002
Location: Daytona Beach, Florida
Posts: 433
Thanks: 18
Thanked 0 Times in 0 Posts
Contact Info
Send a message via MSN to pede
Default Re: CSS/HTML : Little Help Please

Your awesome....

Sent you a PM....

J

pede is offline   Reply With Quote
Old 10-20-2008, 07:45 PM   #17
TheRichJerksNet
Guest
 
Posts: n/a
Default Re: CSS/HTML : Little Help Please

Devan,
Hope you dont mind but that charset should be UTF-8

Code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
James
  Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
css or html

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 05:15 AM.