944,070 Members | Top Members by Rank

Ad:
Dec 29th, 2005
0

How to make up the blank?

Expand Post »
I use a script to generate some contennent at my site,but the left of the page is blank.How to make up it?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
steven01 is offline Offline
32 posts
since Apr 2005
Dec 29th, 2005
0

Re: How to make up the blank?

Your question, as asked, is impossible to answer. You've left us too much to guess. What kind of script? What kind of content? Is this a CSS question relating to placement of HTML elements? Margins? Padding? Centering? Or are you asking for suggestions as to what kind of generic content you could place on your site? What does "make up it" mean?
Last edited by tgreer; Feb 3rd, 2006 at 4:19 pm.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Dec 29th, 2005
0

Re: How to make up the blank?

this is the script:

HTML and CSS Syntax (Toggle Plain Text)
  1. <script type="text/javascript"
  2. src="http://xmlheadlines.com/?a=get_content&id=54&category_template_id=50&style_template_id=45">
  3. </script>

It generates some content, but the page's right is blank. I want to add some content at the right.
Reputation Points: 10
Solved Threads: 0
Light Poster
steven01 is offline Offline
32 posts
since Apr 2005
Dec 29th, 2005
0

Re: How to make up the blank?

You still haven't given us enough information to give you a meaningful answer.

You can add content to your web pages by writing HTML. You can position that content, to the left, or the right, with CSS.

What content do you want to add? How? Where? When? I just don't understand what you're asking.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Dec 29th, 2005
0

Re: How to make up the blank?

I'm just a begainnerIs it possible also add contennent supplied by script to make up the blank?
Reputation Points: 10
Solved Threads: 0
Light Poster
steven01 is offline Offline
32 posts
since Apr 2005
Dec 29th, 2005
0

Re: How to make up the blank?

Ok, I think I'm understanding now.

The way to create a page with two separate "content sections" is to arrange the content into separate block-level elements.

You can do this with a TABLE, or with DIV elements.

A DIV looks like:

HTML and CSS Syntax (Toggle Plain Text)
  1. <div id="leftSide">
  2. Place whatever HTML you want here,
  3. including scripts that generate content.
  4. </div>
  5.  
  6. <div id="rightSide">
  7. Place whatever HTML you want here,
  8. including scripts that generate content.
  9. </div>

Normally, the second DIV would display below the first DIV. You can change this behavior with CSS. The CSS attribute you'd use would be "float".

Here is a complete, though very simplistic, example:

HTML and CSS Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. .left
  5. {
  6. float:left;
  7. width:250px;
  8. }
  9. .right
  10. {
  11. float:right;
  12. width:250px;
  13. }
  14. </style>
  15. </head>
  16.  
  17. <body>
  18.  
  19.  
  20. <div id="leftSide" class="left">
  21. Place whatever HTML you want here,
  22. including scripts that generate content.
  23. </div>
  24.  
  25. <div id="rightSide" class="right">
  26. Place whatever HTML you want here,
  27. including scripts that generate content.
  28. </div>
  29.  
  30. </body>
  31. </html>

You should tinker with this, look up the CSS "float" attributes, understand what they do, as well as the other CSS properties (such as "width"). Learn the difference between CSS "class" definitions and "id" definitions.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: How to use xml?
Next Thread in HTML and CSS Forum Timeline: Serving up html using cgi-perl





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC