• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html restriction

 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are there a way that we have configure the html code so that it will look the same and print out the same regardless the user change the "text size" in browser? thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is to use CSS to set the font size. For example:

hth,
bear
 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks bear,
but where should I put it?
thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, never used CSS before? It's a very handy skill to get under your belt.
Easiest way to put it on a page is to place the CSS rule I posted earlier in style tags in the header:

But CSS is most useful when you put the rules in a .css file and use the link tag to include it in a page. That way, your rules are shared across all pages.
hth,
bear
a good CSS reference
recommended reading
 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks bear,
are there a way that i can change the html code such that the default printing is "landscape" instead of "portrait"? thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic