# Render with responsive layout Learn how to render your document with responsive HTML layout that looks great on mobile and desktop devices. Responsive design aims to make web pages render well on a variety of devices. GroupDocs.Viewer provides the [RenderResponsive](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/htmlviewoptions/properties/renderresponsive) property of the [HtmlViewOptions](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/htmlviewoptions) class to render HTML pages with responsive layout. The following code snippet shows how to render a .docx document to HTML with responsive layout: {{< tabs "render-responsive-html">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (Viewer viewer = new Viewer("sample.docx")) { // Create view options. var viewOptions = HtmlViewOptions.ForEmbeddedResources(); // Render the file with responsive layout. viewOptions.RenderResponsive = true; viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer As Viewer = New Viewer("sample.docx") ' Create view options. Dim viewOptions = HtmlViewOptions.ForEmbeddedResources() ' Render the file with responsive layout. viewOptions.RenderResponsive = True viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.docx" >}} {{< tab-text >}} `sample.docx` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/developer-guide/rendering-documents/rendering-to-html/render-with-responsive-layout/sample.docx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "render-responsive-html.zip" >}} ```text p_1.html (177 KB) p_2.html (10 KB) p_3.html (44 KB) p_4.html (843 KB) p_5.html (15 KB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/developer-guide/rendering-documents/rendering-to-html/render-with-responsive-layout/RenderResponsiveHtml/render-responsive-html.zip) {{< /tab >}} {{< /tabs >}}