/    Sign up×
Community /Pin to ProfileBookmark

web page too wide

I originally built my site with Yahoo Site Builder, which doesn’t require any knowledge of HTML code. Then I moved my site to IPowerWeb, and that transfer turned out OK. I have a note on my site that says “this site is best viewed at 1024 x 768 pixels,” but a few people have still complained that some of my pages are too wide, and they don’t like to use the lateral scroll bar. I think they are using a lower resolution, and that causes the problem. I’ve heard there’s a way to manipulate the code so that the page width is automatically altered according to the resolution of the computer and the browser that is used. Is this true, and can a beginner like me make the necessary changes?

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@wh666-666Jun 10.2006 — have you tried changing the width and height from pixels to percentages? For example a snippet of code:

id="drinks" [COLOR=Red]width="975" height="550"[/COLOR]>

<param name="movie" value="drinks.swf">

<param name="quality" value="high">

<param name="bgcolor" value="#FF9900">

<embed name="drinks" src="drinks.swf"

quality="high" bgcolor="#FF9900" swLiveConnect="true"

[COLOR=Red] width="975" height="550"[/COLOR]

type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

</object>

</center>

</body>

Becomes this bit of code (all highlighted in red):

id="drinks" [COLOR=Red]width=100% height=100%[/COLOR]>

<param name="movie" value="drinks.swf">

<param name="quality" value="high">

<param name="bgcolor" value="#FF9900">

<embed name="drinks" src="drinks.swf"

quality="high" bgcolor="#FF9900" swLiveConnect="true"

[COLOR=Red]width=100% height=100%[/COLOR]

type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

</object>

</center>

</body>

</html>


just change " or px to a % sign ... Its far easier to code .. and do it in notepad ... really easy that way
Copy linkTweet thisAlerts:
@JosuleauthorJun 11.2006 — Thank you. I went into the html code for one of the pages, (in IPowerWeb's html edit program) and changed the width from 975 (it didn't have any quote marks around it)to 100%, as suggested, but it didn't seem to do anything. When I looked at the code again, it had inserted quote marks around the 100%, and I couldn't get it to stop doing that. Any other suggestions?

Josule
Copy linkTweet thisAlerts:
@wh666-666Jun 11.2006 — delete the inserted quote marks. it should be just [COLOR=Blue]width=100% height=100%[/COLOR] Nothing else. Thats why i suggested notepad (right click *.html file and open with and save changes as html when exiting notepad) as web page creators tend to alter your code to what they think it should be.
×

Success!

Help @Josule spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...