Hey everyone, my first post here :D
I am new to the css style of making a web page. I usually just use the html and iframe method.
my problem is...I don't really know HOW to use php and css together. I am trying it and so far so good except one thing. I dont think it's correct xD and I cant get a div to go where I want it to or check with the css for it's style. IF YOU DONT WANT TO READ ALL OF IT GO DOWN FOR A LINK TO DOWNLOAD THE FILES. (90kb very tiny and quick download in .rar folder)
My index.php: -
<?php include("layout.php"); ?>
-
-
-
Hello
-
-
THIS IS THE BLAH and the sjdfl kjds fdsjf dkslfj dskf ldksjf sdjfk jdklfj dfkj sfkj dkslfj dlfjlskdf dsfj fdsljflka dfkjd fjlkajk dfkjd aslfjdlkf skljdf kdsjlfaj fkjldk ajkljdf kajfkla jdfkjd aslkj fkldjfkl ajfklj adlkf
-
<?php include("content.php"); ?>
-
-
<?php include("bottom.php"); ?>
-
My layout .php -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-
"http://www.w3.org/TR/html4/loose.dtd">
-
<html>
-
-
<head>
-
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
-
<link rel="stylesheet" type="text/css" href="styles.css" media="screen"/>
-
-
-
<title>Nouman Layout, lol</title>
-
<style type="text/css">
-
<!--
-
.style3 { color: #92c240;
-
font-size: 18px;
-
}
-
.style5 {font-family: Verdana, Arial, Helvetica, sans-serif}
-
.style6 {color: #92c240; font-size: 20px; }
-
.style7 {font-family: Arial, Helvetica, sans-serif}
-
-->
-
</style>
-
</head>
-
<body>
-
<div id="wrapper">
-
<div align="center">
-
</div>
-
<div id="header">
-
<div class="headertext">
-
<div align="center">Nouman Layout, lol
-
</div>
-
</div>
-
</div>
-
my content.php: my bottom.php -
</div>
-
<div align="center">
-
</div>
-
<div id="content">
-
<div id="buttonrow">
-
<div align="center">
-
<a href=" index.html" accesskey="i" class="button"> Home</a>
-
<a href=" about.html" accesskey="h" class="button"> About</a>
-
<a href=" work.html" accesskey="w" class="button"> Shopping >></a>
-
<a href=" contact.html" accesskey="c" class="button"> Resturants >></a>
-
<a href=" contact.html" accesskey="c" class="button"> Family >></a>
-
<a href=" contact.html" accesskey="c" class="button"> Contact >></a>
-
</div>
-
</div>
-
<div id="right">
-
<div align="center"> What's New </div>
-
</div>
-
</div>
-
<div align="center">
-
<div id="footer">
-
<div align="center">© Copyright or whatever Nouman 2006</div>
-
</body>
-
</html>
-
-
Finely my styles.css: LINK:
http://www.sendspace.c om/delete/s2cc6n/wfvoq
7 1987 Motoma 3,237
Recognized Expert Specialist
What you first need to realize is that a PHP file is a program that generates HTML (or whatever else you want it to). To debug the CSS, navigate to the site, and do a simple view source. Find out what your errors are in the HTML, and try to navigate to the PHP that is causing it.
Motoma 3,237
Recognized Expert Specialist
I don't have an error, actually what I need is for this:
notice the text div? I want that to be in the center of the left(navy) and right div and be aligned on the top as well.
I understand now. I have moved your thread to the HTML/CSS forum.
The link is to where to delete the file and not the download itself. cut/pasting this doesn't work but I'm still looking at it.
1) I would not style <html> but apply all that to the body instead.
2) You declare html transitional but are using Xhtml end tags: />. Lose the slash. Sometimes a browser stops all processing at that point.
3) New pages should be created using the strict doctype and without deprecated elements.
4) You have a case of 'divitis' where everything is in a <div>. Divs are used to help create structure by grouping related elements. Positioning is a bonus but all elements can be positioned on their own and don't need a div.
There's too much missing in the posted code to pinpoint what is going on. Can you get this online with everything? I mean the generated html/css. The PHP is not useful.
here, sorry for wasting your time with the delete link xD I had copied the wrong link.
http://www.sendspace.c om/file/g7r4k7
that should be it. :D
(can't edit :( )
anyways nvm I have got it to work out fine.
now if anyone can look into my new files and fix what I did stupidly or what is unneeded and stuff like that and send it back so I can review it, that would be LOVELY! I really want to get this stuff nailed down the right way from the start so I don't continue on the wrong path.
http://www.sendspace.c om/file/xl1hoq
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Spammay Blockay |
last post by:
I've been tasked with doing technical interviews at my company,
and I have generally ask a range of OO, Java, and "good programming
technique" concepts.
However, one of my favorite exercises I give interviewees seems
to trip them up all the time, and I wonder if I'm being too much
of a hardass... it seems easy enough to ME, but these guys, when
I get them up to the whiteboard, seem to get really confused.
The exercise is this:
|
by: Brian Patterson |
last post by:
I have noticed in the book of words that hasattr works by calling getattr
and raising an exception if no such attribute exists. If I need the value
in any case, am I better off using getattr within a try statement myself, or
is there some clever implementation enhancement which makes this a bad idea?
i.e. should I prefer:
if hasattr(self,"datum"):
datum=getattr("datum")
else:
datum=None
|
by: aeldaly |
last post by:
Hello all,
I have just finished what I call Site Management System
v0.0.0.0.0.0.0.0.0.1 :D
I am not a professional programmer nor a really experienced one either
(I've been dabbling with stuff for the last 10 years), so I would like
you, the experts, to have a look at the code and provide me with your
feedback. I do not know if I implemented good security practices or not
and if I have made the functions efficient enough.
|
by: Gérard Talbot |
last post by:
Cross-posted to: comp.infosystems.www.authoring.html and alt.html
Followup-to: comp.infosystems.www.authoring.html
1- One day, I stumbled across a website that offers to validate
webpages. What was really special about that site is that the validation
service was available in Russian, German, Spanish and English. Now, I
can't find this site anymore. I did search google. Do you know such
site? What's its url?
2- Generally speaking, the...
|
by: free2cric |
last post by:
Hi,
I attanded an interview on C++
Question asked were and my answers to them..
1. In a CPP program what does memory leak occure?
-- i said.. In a constructor , the pointer variables were assigned
a memory block but the programmer forgets to free them in the
destructor by usng delete operator.
2. ok, the delete operator is used .. variables were freed. but still
| |
by: GeorgeRXZ |
last post by:
Hi Friends,
I have some questions related to C Language.
1What is the difference between the standard C language and Non
standard C language ?
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
|
by: robtyketto |
last post by:
Im a student and in preparation for a testIve been given the test questions (or thereabouts, they may be asked in different words or from another perspective).
I've been told that they do not require long answer, short punchy bullet points are fine, and I guess to justify your points too.
So since I got up this morning in the UK for the last 3hrs Ive done some resarch and come up with a set of notes/answers.
Remembering this is an...
|
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= |
last post by:
Hi, I am using Visual C# window to dispaly a set of questions with their
answers. The users should be able to move to the next question by clicking on
next button. I am going to use only one panel to display one question and
move to next question. Can someone please help me with the codes on coding
"Next" button?
Thanks
--
Nejadian
|
by: =?Utf-8?B?TWFyaw==?= |
last post by:
Hi...
I've got a .Net client to a soap service that works for the most part, but
there are a couple of things I'd like to improve:
1) the first request to the client wrapper always takes 12-15 seconds even
though the web server shows < a half second spent on the request. What takes
so much time for the client wrapper to warm up? All subsequent requests,
even to the same method, take the half second.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |