Friday 15 February 2013

Is it possible to use CSS to update parts of an HTML page in a way similar to frames? -


Is it possible to use CSS to work as a frame?

I mean, when we use the frame (for example, left, right), clicking on the left will only refresh the correct section using the 'target' attribute

< P> Is it possible to make an impact with CSS?

Thank you.

Using frames is usually a bad idea

Answer your question Not to give, CSS can not be used to work as a frame CSS is used to change the style of HTML and thus, actually the content of a page Can not change it, it can be used to hide content, but I do not think F you need it.

However, I think in this case you are asking the wrong question Frame is usually incorrectly done.

When the web design begins, frames look like a great idea You can separate your navigation from your content, your site will load quickly because Navigation does not load every time and the menu is always visible even when the page is loading.

However, in fact,

  • Your users can not book individual pages
  • Printing is broken
  • Standard features in the browser
  • Users can not copy / paste web pages for a particular page

Frames are used for them ( Such as Google Image Search), but are not recommended for standard navigation menus. Try creating a page in a dynamic server language such as PHP or ASP.NET.

In these languages ​​there are ways to create standard elements such as your navigation menu without the use of frames.


No comments:

Post a Comment