How to make up the blank?

Reply

Join Date: Apr 2005
Posts: 32
Reputation: steven01 is an unknown quantity at this point 
Solved Threads: 0
steven01 steven01 is offline Offline
Light Poster

How to make up the blank?

 
0
  #1
Dec 29th, 2005
I use a script to generate some contennent at my site,but the left of the page is blank.How to make up it?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: How to make up the blank?

 
0
  #2
Dec 29th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 32
Reputation: steven01 is an unknown quantity at this point 
Solved Threads: 0
steven01 steven01 is offline Offline
Light Poster

Re: How to make up the blank?

 
0
  #3
Dec 29th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: How to make up the blank?

 
0
  #4
Dec 29th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 32
Reputation: steven01 is an unknown quantity at this point 
Solved Threads: 0
steven01 steven01 is offline Offline
Light Poster

Re: How to make up the blank?

 
0
  #5
Dec 29th, 2005
I'm just a begainnerIs it possible also add contennent supplied by script to make up the blank?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: How to make up the blank?

 
0
  #6
Dec 29th, 2005
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum


Views: 1673 | Replies: 5
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC