Jump to content
Sign in to follow this  
KYKK

CSS or HTML or ... ?

Recommended Posts

Should i use HTML table or CSS or what to create header , footer, center, left and right bar... ? and what the diff ?

Share this post


Link to post
Share on other sites

CSS - faster, easier, smaller, more maintainable, more flexible, more powerful, more accessible, more usable :)

Share this post


Link to post
Share on other sites

well why i need to use html then ok so synook i am starting over my website because i find out a BIG problem... so this examplehttp://pmob.co.uk/temp/3colcentred_2a.htmit won;t change even i make the IE window go smaller !!but this one http://pmob.co.uk/temp/3column_simple_1.htmit will when i small the IE window to ( the width smaller) the image like popout of the content! BUT the first example is not CSS.... so can someone tell me that iN CSS code ?? because i will have images so i don;t want them to go out of the content or table...?

Share this post


Link to post
Share on other sites
well why i need to use html
Well you still need HTML for the document structure but the presentation can be handled using CSS.
it won;t change even i make the IE window go smaller !!
Well no... that is not the way the author made it.
BUT the first example is not CSS.... so can someone tell me that iN CSS code ??
Looks fairly CSS-driven to me
because i will have images so i don;t want them to go out of the content or table...?
Well... that is a side-effect of the layout, you can always have minimum widths for it so that the central column cannot go smaller than the image.

Share this post


Link to post
Share on other sites

NOW I GET, BUT THE TABLE HAVE SPACE OUTSIDE THE BORDER... <table class="zero" border="1" width="980px"><td width="800px"><!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" xml:lang="zh-TW" lang="zh-TW"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>Plane Background</title></head><body bgcolor="#ffffff"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="985" height="220" id="Plane Background" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="Plane Background.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="Plane Background.swf" quality="high" bgcolor="#ffffff" width="985" height="220" name="Plane Background" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></body></html></td></table><table class="one" border="1" width="980px"><td width="245px"></td><td width="490px">1000</td><td width="245px">100</td></tr></table><table class="one" border="1" width="980px"><td width="800px">100000000000000</td></table>

Share this post


Link to post
Share on other sites

Try validating your pages :)

Share this post


Link to post
Share on other sites
what that mean ?
Ensure that you are writing HTML and CSS correctly. That you don't have some sort of errors that the browser is trying to recover from, rendering the page differently than your initial intention.Go to the W3C validator and enter the adress of your HTML document. The two documents you link to at your second post are both valid XHTML Transitional documents.You may also then try to use the CSS validator to see if your CSS is valid. Note that you can also give the adress to an HTML document using CSS, not just the CSS file. Your two documents at your second post also use valid CSS.I must say, it's inspiring to see a person that's writing valid XHTML and CSS without ever hearing of the HTML and CSS validators before.

Share this post


Link to post
Share on other sites
I must say, it's inspiring to see a person that's writing valid XHTML and CSS without ever hearing of the HTML and CSS validators before.
I don't think those are his pages... I meant validate the code in his 3rd post.

Share this post


Link to post
Share on other sites
I don't think those are his pages... I meant validate the code in his 3rd post.
Oh... that would explain it. Ehh... I knew it was too good to be true.

Share this post


Link to post
Share on other sites

I want to ask if are there anything like i press a button and one of my colums the one that go up to down... if i press the button it disappear and my middle colum go wider ?

Share this post


Link to post
Share on other sites

Yes, make a button that uses JavaScript to set the display CSS property of the element with the target ID of the column's ID to "none", i.e.

document.getElementById('left_column').style.display = "none";

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...