floatingDivs 21 Junior Poster

Oh my GOD! How did I not freaking notice??? Change your Doctype to HTML5, meaning get rid of the very top line of your code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

and replace it with

<!DOCTYPE html>

Mobile browsers don't render well without the HTML5 doctype. I had to take a look at my University's mobile website (which I helped create) to realize that we were using HTML5 doctype to get properly sized content.

Try the HTML below.

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<meta http-equiv="Content-Language" content="en">
		<meta name="description" content="Digital photography">
		<title>test</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<style>
		@media only screen and (max-device-width: 480px){
		#main_picture {
		height: auto;
		width: 100%:
		}
		#main_picture img {
		width: 100%;
		}
}
</style>
		

	</head>

	<body>
		<div id = "main_picture" style ="width:700px; height:450px; border:3px solid BLACK; margin:0 auto;">
		</div>
		<p>
		<img src = "home_0.jpg" alt = " " class = "active">
		</p>
	</body>
</html>
dantinkakkar commented: :P I failed to notice, too! :D :) +4
floatingDivs 21 Junior Poster
#header-wrapper { float: left; }

I've attached an image to show you that it's fixed in FF10 if you apply my CSS change above.

I posted the solution yesterday afternoon, but for some reason it didn't appear? Anyways, good luck with the blog!

Q8iEnG commented: Cheers! +3
floatingDivs 21 Junior Poster

That's cool. It just seems weird that you skipped over discussing the Doctype.

As for getting off your back, I wasn't on it. You're the first person that's ever shown any hostility towards my posts, and I've been "rude" -- something I wasn't with my previous post -- to people on here.

Then again, after checking out your site (which is a template you downloaded from midphase.com), which led me to Twitter, which led me to your "donation" post, I can see why you're hasty. Your potential clients may read that you forgot to include a very important part of web coding and it doesn't look good, right?

Also, your "expertise" (as much as you can have as a 16-year old, I guess...) isn't really needed, as this "donation" (tutorial) you are providing is basically found on htmldog.com, Mozilla's HTML development site, and a host of others (including the aforementioned w3schools.com), but that's just me.

Now I'm on your back. ;)

floatingDivs 21 Junior Poster

No offense, but couldn't someone read all of what you've written on w3schools.com/html? Heck, it's all available on the first couple pages...

Also, Arkinder made a great point. You're teaching people to code, but you forgot the DOCTYPE?!?!

Lastly, stop cussing in your posts.

floatingDivs 21 Junior Poster

I believe the problem lies with using framesets. I don't think IE9 supports them in any way, shape, or form. I tested out the page by removing snippets of code at a time and after deleting the frameset, the page "worked", albeit displayed empty. A little research on Google confirms my theory.

floatingDivs 21 Junior Poster

I agree with russ_nbhs! chrisea, you're a fool and a prick for not being able to understand the fairly clear and obvious questions posed by russ_nbhs. He knows enough to get the scripts to work, but doesn't know how to actual code with them (lol). Also, just because you know a lot about these things doesn't mean you know everything about it.

/sarcasm

My suggestion is just to ignore the little brat until he a) apologizes for being a prick and b) asks a clear and concise question. You want to prettify your site? Go read CSS tutorials.

floatingDivs 21 Junior Poster

the prince Awah,

You clearly do not seem to understand that we don't wait for you to beckon us for help. I'm sorry you feel as though the world (specifically Daniweb) owes you this huge favor of doing the work for you, but I doubt anyone with any self-respect will help you after you managed to insult the entire board.

Secondly, in response to your question about what kind of web developers we are, I think it's fair to say we're far superior to you. The fact that YOU came to US for help should tell you this much, genius.

Lastly, I think the problem is fairly obvious, but I'm not going to give you an easy answer.

Instead, you can read this article and figure out the solution on your own, kiddo.

http://css-tricks.com/all-about-floats/

floatingDivs 21 Junior Poster

Sigh, read http://learncpp.com

If you don't like learcpp, tale a look at http://www.cplusplus.com/doc/tutorial/

There is NO reason for you to be unable to do such a program on your own with enough learning. This sounds jackass-y, but it's NOT intended to. Just trust me, put the time in and you'll be rewarded big time.

jonsca commented: Not so jackassy! +7
floatingDivs 21 Junior Poster

Carefully read this and be 100% certain before ruling it out.

http://www.webmasterworld.com/firefox_browser/3035057.htm

---

EDIT: Here's a working version I re-created on my desktop. Copy & paste this into a test page and try it out. If it works, maybe consider using the absolute links I did rather than relative ones? Also, curious as to why your charset isn't UTF-8.

---

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Latmontu Kontakti | www.latmont.org</title>
<link rel="stylesheet" type="text/css" href="http://latmont.org/style.css" />
</head>

<body>

<div id="container">

<div id="header">
<h1>Latmontu Kontakti</h1>
<h2>www.latmont.org</h2>

</div>

<div id="linkbar">
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="index.htm" id="current">Mājas Lapa</a></li>
<li><a href="laikradis.htm">Laikrādis</a></li>
<li><a href="jaunumi.htm">Jaunumi</a></li>
<li><a href="notikumi.htm">Notikumi</a></li>
<li><a href="saites.htm">Saites</a></li>
<li><a href="kontakti.htm">Kontakti</a></li>

<li><a href="atbalss.htm">Atbalss</a></li>
</ul>
</div>
</div>

<div id="left">

<div id="sub_left">
<h3>Latvijas Republikas Vēstniecība Kanādā</h3>
<p align=middle><img src="http://latmont.org/images/mini-saulite.png" alt="Saulite" width="78" height="80" class="img_left" /></a> </p>
<b>Pasta adrese:</b><br>
350, Sparks Street<br>

Suite 1200<br>
Ottawa, On. K1R 7S8<br>
<b>Tel:</b> 613-238- 6014<br>
<b>Fax:</b> 613-238 7044<br>
<b>Epasts:</b> <a href="mailto:embassy.canada@mfa.gov.lv">embassy.canada@mfa.gov.lv</a><br>
<b>Saite:</b><br>

<a href="http://www.ottawa.am.gov.lv/lv/">http://www.ottawa.am.gov.lv/lv/</a> </p>
<hr>
<br>
<h3>Latvijas Valsts Goda Konsuls Montreālā</h3>
<p><img src="http://latmont.org/images/mini-saulite.png" alt="Saulite" width="78" height="80" class="img_left" /><b>Kontakts:</b><br>
Roberts Klaiše<br><br>
<b>Pasta adrese:</b><br>
3955 Provost, Lachine, Que. <br>
H8T 1M1<br>

<b>Tel:</b> 514-422-0562<br>
<b>Epasts:</b> <a href="mailto:rklaise@sympatico.ca">rklaise@sympatico.ca</a> 
</p>
</div>

<div id="sub_right">
<h3>Montreālas Latviešu Katoļu Kopa</h3>
<p><img src="http://latmont.org/images/mini-saulite.png" alt="Saulite" width="78" height="80" class="img_left" /></a> </p>
<p><b>Kontakts:</b><br> Alberts Caune<br>

<b>Tel:</b> 514-484-0272</p> 
<p><i>Dievkalpojumi notiek Notre Dame Bazilikas Sv. Jēzus Sirds kaplīčā, ieeja no St. Sulpice ielas.</i> …
sasa.spurmanis commented: thanks FD! You helped me solve this problem :D +0
floatingDivs 21 Junior Poster

No prob. 4 *&%%^ HOURS to get 6 lines of code!, I'm sure I'll be bald by the end of this week. Funny enough, I had a breeze with MySql into all different pages. vb6 is just soooo much easier, or until I have this under foot at least.;)

AndreRet,

Glad to hear that you solved your problem!

I'm not sure how knowledgeable you are with Web Development, seeing how you mentioned VB was more your style, but may I suggest that you use titles more descriptive and closer to your goal? For instance, "Determine previous page click event" sounds a lot like JavaScript, right? Especially the part about "click event", which tends to be associated with JavaScript (at least to me). A title like "Determine previous page via query string" would be much closer to what you seek. Although, if you don't know about query strings, my point is moot.

I've spent the last 5 minutes thinking of whether to post this or not, simply because it SOUNDS like a jackass comment, but it's not meant to be, honest! I skipped over it for quite a while thinking it was a JavaScript issue, not a PHP one.

Not meant to be critical, promise...

AndreRet commented: Thanks.:) +7
floatingDivs 21 Junior Poster

ive been looking at the <div> tag, i know how to to align it center left or right but the one thing i would like to know is how to place things side by side like put a content box and then a facebook page like button embedded beside it if you know what i mean?

I think the CSS style you want to use is float.

floatingDivs 21 Junior Poster

We're all agreeing to the same thing, what I'm saying is that if a newbie just gets used to this without knowing what they're doing, they might get confused. The right answer for the OP is, 'margin-right: auto; margin-left: auto;'...

Well, this is awkward. For some reason, I thought you were the OP and were responding to teedoff after having asked the question.

My fault.

floatingDivs 21 Junior Poster

Hey guys (and gals),

I've been wondering this question for the longest time and no Google query I've tried really seems to answer it. So, I'm going to try to ask this question in the most detailed way possible.

Whenever you go onto a forum / discussion board, the layout is pretty much always the same. Each category (and its boards) are contained inside a table layout (or div in the past few years), but would a list be a possible solution to this?

For instance, for each category "wrapper" (containing the category name and all its boards/sub-boards), instead of using a table/div layout, would using a <h3> (category name) and <ul> (boards) be a valid alternative? I figure screen-readers would have a much easier time navigating through a list than a table layout or a half-dozen <div>'s each inside one another.

floatingDivs 21 Junior Poster

Well, this just became a very embarrassing situation *cough*. Nevertheless, taking down notes. :P

floatingDivs 21 Junior Poster

Why not use a customized Google search?

http://www.google.com/cse/