/    Sign up×
Community /Pin to ProfileBookmark

I read in another thread that instead of using tables try using CSS.

When doing this for the puroses of keeping the content of a page from exceeding the screen limits (ie someone viewing the page at a 800×600 resolution) is it the margins you want to set in the CSS to reflect on the page, or is there something else that would be the equivalent of keeping text in line?

I’m not sure I am really doing it right… but if I have an html doc wiith this line

<link rel=”stylesheet” type=”text/css”
href=”http://www.geocities.com/satyr_child/test.css“/>

If the .css file is in that location, then I should be able to take out any formatting references in the html doc that determines ha is now being done by the css, right?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@nkaisareApr 15.2003 — [i]Originally posted by Maximus Prime [/i][/quote]
[B]When doing this for the puroses of keeping the content of a page from exceeding the screen limits (ie someone viewing the page at a 800x600 resolution) is it the margins you want to set in the CSS to reflect on the page, or is there something else that would be the equivalent of keeping text in line?[/b]

I am not sure what you mean. As long as you don't specify width for any element, the content will organize itself to fit the page width without horizontal scrolling.

[b]<link rel="stylesheet" type="text/css"

href="http://www.geocities.com/satyr_child/test.css" />[/b]


All the styles in http://www.geocities.com/satyr_child/test.css will be used to render the HTML page. You don't need to define the style again in the HTML file.
Copy linkTweet thisAlerts:
@Maximus_PrimeauthorApr 15.2003 — You kow how you can keep the text from moving all over the place by putting it in tables? Well, does using the margins have the same effect?

How do you control the placement of text the same wayyou can with tables when using CSS?

Another thing...

I am more or less rebuilding a web page around stupid drop down menus... whie at the same time trying to do everythig in Notepad (for the first time). I amhaving a really hard time keeping the drop down menu [pictures} in line with the other items in the table. As you can probably se the itmes listed next to PIctures are slightly off center (which is driving me crazy). Odds are I have put it in wrong because I pretty much re-wrote a prepared drop down menu and then started building around it... Any suggestions.

http://www.geocities.com/satyr_child/test.htm



[i]Originally posted by nkaisare [/i]

[B][B]When doing this for the puroses of keeping the content of a page from exceeding the screen limits (ie someone viewing the page at a 800x600 resolution) is it the margins you want to set in the CSS to reflect on the page, or is there something else that would be the equivalent of keeping text in line?[/b]

I am not sure what you mean. As long as you don't specify width for any element, the content will organize itself to fit the page width without horizontal scrolling.



[b]<link rel="stylesheet" type="text/css"

href="http://www.geocities.com/satyr_child/test.css" />[/b]


All the styles in http://www.geocities.com/satyr_child/test.css will be used to render the HTML page. You don't need to define the style again in the HTML file. [/B]
[/QUOTE]
×

Success!

Help @Maximus_Prime 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.19,
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,
)...