19 replies [Last post]
fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

I want to make a page to be size locked so that other users cant resize it from their browsers :oops: maybe a very beginner question. i'm making this webpage http://www.talleresochoa.com

fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

By the way

how do i make a <li> just for certain pixels, so it doesnt goes all along the page, if there is a way to do it.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 17 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

Newbie question

Verschwindende wrote:
  • CSS doesn't make pies

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 9 hours 41 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9745
Points: 3824

Newbie question

Hi fernocol,

Welcome to the forum. Let me start by apologizing for TPH. He likes to think he's the nazi of doctypes, validation, and searches. He is, however, way too nice to deserve the title. Especially not as there are those of us with many more years to have developed our curmudgeonosity.

In any tech oriented forum or m-list there is a set of protocols to follow in seeking help. If I recall correctly, there is a sticky post right at the top of this forum that goes over these protocols. Another article to read is ESR's How To Ask Questions The Smart Way. This article approaches the status of an rfc, or web standard. Please read it. Oh, and it describes the actions of the clueless vs. clueful. Consider which camp you want to be counted in Smile

To question1; there is no way.

To question 2; li is a block element and will expand to fill the available width unless you set an explicit width, eg. {width: 150px;}. This is basic stuff. Google for css tutorials and do some R'ing the FM.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 17 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

Newbie question

Sorry about that, was having a bad day.

Do you mean you want the browser window itself to not be resizable? This can be done, I think, with javascript and a pop up window.

Verschwindende wrote:
  • CSS doesn't make pies

fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

I found it

I made the pop up window and yeah it was java, thx kk5 for the code, it was for horizontal rule not <li>, but it worked anywayz, so many thanks, and tph i know how a bad goes by perfectly, so no worries.

larmyia
Offline
Elder
London
Last seen: 11 years 13 weeks ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

Newbie question

fernocol,

I was reading this post and looking at your site and I hope you don't mind but I have a question. From the thread can I take it you decided to have a put your webpage in a popup to ensure users couldn't change the size of it?

may I ask the reason behind this?

I am currently assessing another site where it opens in a popup and I can't fathom why anyone would do this. you take all control away from the user and I don't see why? all it'll do is pee the user off. well, it would me anyway.

so, I thought you might have a good reason for doing this Smile

thanks

larmyia

fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

Newbie question

Larmia, if the users resize it, i have seen coz i resize it, it is just a mess, i just want for the user to have a good navigation among the webpage and i dont see any cause for resizing it, if it turns pissy for them, then i will have to change it, since its a page for my dad's industry. Btw, the main page is a mess, i will change it of course, i was just testing out. Smile

Fernando.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 48 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Newbie question

fernocol, I hate to say this but you cannot attempt this sort of control in order to hide the fact that the layout breaks if resized. It's your job to learn your craft and work out how to construct layouts that work at different sizes.

Pop ups are just plain annoying at the best of times and should be used as seldom as possible, it's an aspect that really should be left in the hands of the user as to whether they want links etc opening in new windows.

The site Larmyia refers to is a classic example of a nonsensical use of a pop-up especially when you have pop up blocking enabled, which is also something you ought to think about as well as the consideration that some folks may have JavaScript disabled .

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

larmyia
Offline
Elder
London
Last seen: 11 years 13 weeks ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

Newbie question

as I suspected fernocol. listen to Hugo's wise words.

keep the design simple and you should have to do no more work than building up laborious tables. I think you really need to think about the bigger picture in terms of usability. you want you users to be able to navigate, but you are taking away a great deal of control from them. to make something usable it should be intuitive. you are asking people to think a different way on your website, and only for the simple fact that you haven't taken the time to design it well. maybe you should read up about HCI/usability issues a bit.

at the end of the day the choice is up to you - you can do a patchwork job for your Dad's site or build something you and he can be proud of, that you know will work across browsers, resized or not.

I hope you choose the later, but good luck either way.

larmyia

fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

Newbie question

My dad is ok with the non-resize thing, but yes, i will make the choice later, i dont want to put a "Site on constuction" screen coz it just looks ugly, i put the content so u can see it and help in my advance, i want to keep a design simple but somehow friendly, thats why i choosed CSS.

larmyia
Offline
Elder
London
Last seen: 11 years 13 weeks ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

Newbie question

fernocol wrote:
My dad is ok with the non-resize thing, but yes, i will make the choice later, i dont want to put a "Site on constuction" screen coz it just looks ugly, i put the content so u can see it and help in my advance, i want to keep a design simple but somehow friendly, thats why i choosed CSS.

css won't help you site be friendly and it can still be complicated with it as well. at the end of the day it's a tool, and it's how you use it. a builder can have the best tools in the trade, but if he does not know how to use them correctly he can still build a rubbish house that'll fall down after 2 months.

I understand that you don't want to leave your site empty. so, stop where you are, leave it as is, and go back to the drawing board. from what I've seen of your site it will not be that complex....if you keep it simple.

nothing against your Dad, but possibly he does not understand the implications of the popup window thing. it is your job as the developer to understand that and to build something that will not only appeal to people but work across browsers and be easy to navigate.

I think the current development is heading nowhere fast imho. I can't 100% say that I would not go on a site like this that took away my control, that used popups and forced me to use the font size that you are prescribing (what about partially sighted people who need larger fonts?) Do you realise how many customers you will repel with this site?

sorry if that's a bit harsh, but if you are serious about using css, use it in the way it's intended.

larmyia

Anonymous
Anonymous's picture
Guru

Re: I found it

fernocol wrote:
I made the pop up window and yeah it was java...
Java is not Javascript. Javascript is not Java.

fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

Newbie question

larmyia, well i just want the site to follow certain path (that the pages are the same but with a simple way to change and edit them), and i found CSS as a way to do it, yer not beeing harsh, its a point of view more like, and like i said, about the pop-up thing if my dad decides to do it that way then i will have to leave it that way.

Fernando.

fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

Newbie question

Tiumph, i dont know the basics about java or javascript.

Anonymous
Anonymous's picture
Guru

Newbie question

fernocol wrote:
Tiumph, i dont know the basics about java or javascript.
Java is a programming language. Javascript is a scripting language. In other words Java is compiled and Javascript is interpreted.

fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

Newbie question

thanks triumph, every day we can learn new things.

Anonymous
Anonymous's picture
Guru

Newbie question

fernocol wrote:
thanks triumph, every day we can learn new things.
That's the spirit. Smile

Back on topic: I don't know of many people that like the control of their browser taken away. I like my windows to cover the entire screen when I am surfing and doing nothing else.

fernocol
Offline
Regular
Last seen: 14 years 37 weeks ago
Joined: 2005-03-29
Posts: 16
Points: 0

Newbie question

it seems i will have a serious talk with my dad

Anonymous
Anonymous's picture
Guru

Newbie question

fernocol wrote:
it seems i will have a serious talk with my dad
Be gentle. He's your dad and all. Smile