Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   problem in html and css (http://www.go4expert.com/forums/html-css-t7054/)

desperateboy 26Oct2007 12:56

problem in html and css
 
hi
I am trying to create a two-column layout using XHTML and CSS. I'm having a problem having the text in the second column start at the top of the column. How do I make sure that the text will go to the top of the second column?
I don't get any reply from web site design company 's forum .I am registered with site.If u got my problem,Give relevant solution.
Thanks in advance.

shabbir 26Oct2007 18:38

Re: problem in html and css
 
You linked to a site which is flagged as spam site and if anybody links to that site using post your post will also get flagged as spam. I removed the link and made the post public

Rexy93 28Oct2007 07:29

Re: problem in html and css
 
Ok from reading the post are you trying to add 2 frames? If that is the problem look below. If not please tell explain again to me lol.


Two add two frames do this.
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Help you</title>
<frameset rows="50%,50%">

<frame noresize="noresize" src="frame_a.htm">

<frameset cols="100%">
<frame noresize="noresize" src="frame_b.htm">
</frameset>

</frameset>
</head>
<body>

</body>
</html>

That is in HTML


Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Help you</title>
</head>
<frameset rows="50%,50%">
<frame noresize="noresize" src="frame_a.htm" />
<frameset cols="100%">
<frame noresize="noresize" src="frame_b.htm" />
</frameset>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>

That is in XHTML.


For this to work you have to make two new files by the name of frame_a.htm and frame_b.htm.
To add CSS into them add the tag that links your XHTML to the CSS file.
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Help Me!</title>
<link rel="stylesheet" href="myfirststyle.css" type="text/css" />
</head>
<body>
</body>
</html>


Rexy93 28Oct2007 07:36

Re: problem in html and css
 
Sorry for the previous post something happened. Can you please add this onto it after.

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Help Me!</title>
</head>
<frameset rows="50%,50%">
<frame noresize="noresize" src="frame_a.htm" />
<frameset cols="100%">
<frame noresize="noresize" src="frame_b.htm" />
</frameset>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>

For this to work you have to create two new files named frame_a.htm and frame_b.htm.
If you want to link a CSS file to that add this in the head tag.

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Help ME!</title>
<link rel="stylesheet" href="myfirststyle.css">
</head>
<body>

</body>
</html>

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Help ME!</title>
<link rel="stylesheet" href="myfirststyle.css" type="text/css" />
</head>
<body>
</body>
</html>

The first code tags are XHTML then HTML and same with the next two.

Hope I helped :D

shabbir 28Oct2007 09:20

Re: problem in html and css
 
Rexy your posts had some links for which your posts went into moderation and I have approved the posts. I hope they appear correct now.

Rexy93 28Oct2007 09:22

Re: problem in html and css
 
Ummm not really. Something happened on my computer so it all stuffed up. Can you keep post 3 but delete 4 and 5.


All times are GMT +5.5. The time now is 16:01.