473,385 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Trying to make template but nothing is showing up. Just clear background.

I'm trying to make template, but I stuck in place.
The code below is what I did.My question is what is wrong :|
The header has height,width even color.. :|

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>example</title> <style type="text/css"
  2. www {width:500px}
  3. header {background-color:#6c0;width:500px;height:200px;margin-bottom:0;}
  4. menu {background-color:#9F6;height:400px;width:200px;float:left;}
  5. content {background-color:#FFFFFF;height400px;width:*px;float:left;}
  6. footer {background-color:#6c0;width:500px}
  7. </style> </head> <body> <div id="www"> <div id="header"><h1>gwegwes<h1></div> <div id="menu"><h2>hgewr<h2></div> <div id="content"><h2>dshgwe<h2></div> <div id="footer"><h2>dfrher</h2></div> </div> </body> </html>
Sep 29 '12 #1
1 1568
Hi there,

You are not using a selector for your Id's.

Id's: #idname
classes: .classname

try this,
Expand|Select|Wrap|Line Numbers
  1. #www {width:500px}
  2. #header {background-color:#6c0;width:500px;height:200px;margin-bottom:0;}
  3. #menu {background-color:#9F6;height:400px;width:200px;float:left;}
  4. #content {background-color:#FFFFFF;height400px;width:*px;float:left;}
  5. #footer {background-color:#6c0;width:500px}
  6.  
also, I would use different names for your Id's. Since the HTML page actually has header and footer elements. Just to avoid confusion.

Hope this helps
Oct 23 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: madhukar_bm | last post by:
Can we declare a template function as a friend to a class, if yes please give me the syntax.Thanks in advance rgrds Madhukar
11
by: Matt | last post by:
I'm posting this question for one of my developers who's not quite as newsgroup-savvy. Any suggestions? The question follows, along with relevant source code. -Matt I have a templated...
3
by: Jeremy | last post by:
I have an mdi app with a misbehaving form. In its closed event I do MyForm=Nothing. But when the user re-opens the form, one of the comboboxes remembers the previous displayvalue. Is there...
3
imrosie
by: imrosie | last post by:
Hello anyone, Is there someone that has a routine to do this? On the Main form I have cmd buttons that clear and undo.. Specifically the Undo doesn't undo the subforms, just the Main form. I...
0
by: MeGeek | last post by:
Hi, I am developing a Client/Server architecture in .Net Remoting using VC++ .Net I want to make the server thread run at the background until it is killed explicitly.Currently I am doing this...
3
by: Boltar | last post by:
Hi I have a template class thats defined in a header file and implemented in a .cpp module that is compiled to a .o file. No problems there. But when I try to use this class from another .o file...
10
by: moondaddy | last post by:
Hi, I have 3 tiny content controls and each has a Path in it to draw some lines. These need to be very small and I'm having trouble making the lines clear. the lines have a stroke thickness of "1",...
42
by: lorlarz | last post by:
Contrary to what one authority in the JavaScript field says: JavaScript does make errors when dealing with just with integers. This authority (Douglas Crockford.) says: "integer arithmetic in...
5
by: sarangrao | last post by:
I want to add new item by right clicking on folder,and add a web page.But add template is showing blank.(ie. nothing)
1
by: jlcastrejon | last post by:
Hi everybody, Could someone tell me how to make a report using just the last record of my access 2007 database? Tks. Jose
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.