Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-26-2003, 01:51 AM   #1 (permalink)
dyslexik
Registered User
 
dyslexik's Avatar
 
Join Date: Feb 2003
Posts: 2
dyslexik is on a distinguished road
Send a message via AIM to dyslexik
Question HTML question...

I've got a question that I've never run into before... at least it's never been a concern.

I'm trying to create a page and at the very top left corner of the page I want to insert a graphic. I don't want any buffering/padding around it, and I'm using a frame index.html with seperate pages inside using tables.

Confused what I mean? My index.html is setting frames with the top row being for banner.html. In the banner.html I have a table setting the graphic at the top left.

Any ideas? Or can this even be done??
dyslexik is offline   Reply With Quote
Old 02-26-2003, 02:10 AM   #2 (permalink)
dyslexik
Registered User
 
dyslexik's Avatar
 
Join Date: Feb 2003
Posts: 2
dyslexik is on a distinguished road
Send a message via AIM to dyslexik
Never mind... I noticed the top of this page and DOH!! there was the answer... god!! what a newb!! hehe
dyslexik is offline   Reply With Quote
Old 02-26-2003, 10:06 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
in case someone searches and wants the answer .. here it is anyway =)

PHP Code:
<html>
<
head><title>My Page</title>

<
body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0>
<
img src=some_image/jpg>


</
body>
</
html
sde is offline   Reply With Quote
Old 03-07-2003, 05:26 PM   #4 (permalink)
Rie
Registered User
 
Rie's Avatar
 
Join Date: Mar 2003
Location: Heaven's Back Alley
Posts: 6
Rie is on a distinguished road
Or you can just use the following if you want to be xhtml compatible and/or your lazy:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>whatever...</title>
<style type="text/css">

body { margin:  0px; }

</style>
</head>
<body>
...content...
</body>
</html>
Rie is offline   Reply With Quote
Old 03-07-2003, 06:16 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
that works in most cases.. some browsers do not support that css spec though. i do both to be sure it works. if you have a bunch of linux users viewing your web pages, you better use both.
sde is offline   Reply With Quote
Old 03-10-2003, 12:49 PM   #6 (permalink)
skawave
Registered User
 
skawave's Avatar
 
Join Date: Feb 2003
Posts: 2
skawave is on a distinguished road
Send a message via AIM to skawave
Quote:
Originally posted by sde
that works in most cases.. some browsers do not support that css spec though. i do both to be sure it works. if you have a bunch of linux users viewing your web pages, you better use both.
Harsh dude, all popular browsers on linux (Mozilla, Konqorer, Galeon, Opera) All fully support CSS1 & 2

The problem you should be worrying about is getting compatibility with people who use versions of IE below 5.5 on the mac, and Below Netscape 7 on the mac.
skawave is offline   Reply With Quote
Old 03-12-2003, 06:07 AM   #7 (permalink)
jlk
Registered User
 
jlk's Avatar
 
Join Date: Mar 2003
Location: New Hampshire
Posts: 5
jlk is on a distinguished road
I have to agree with skawave. Linux has nothing to do with whether a browser supports CSS or not. In fact, I have tried several different browsers on CSS enabled sites and had no problems. The problem resides mostly with older versions of Internet Excrement and Netscrape, or basically, older browsers in general.

Regards,

jlk
jlk is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML form preview then INSERT using PHP & MySQL SteveSoler PHP 16 09-22-2008 12:59 AM
Help with launching an exy within HTML. Nicotine HTML, XML, Javascript, AJAX 5 05-12-2004 04:00 PM
Another newbie question. Odoggy5 PHP 26 09-03-2003 03:19 PM
basic html table question prendo HTML, XML, Javascript, AJAX 2 03-03-2003 05:08 PM


All times are GMT -8. The time now is 12:40 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting